Update sample code in main(), fix the rest as required
This commit is contained in:
parent
8ba01de416
commit
274a2fea11
6 changed files with 65 additions and 36 deletions
|
@ -29,6 +29,5 @@ namespace wren {
|
|||
public:
|
||||
static void write_fn (VM*, const char* text);
|
||||
static void error_fn (VM*, ErrorType, const char* module, int line, const char* msg);
|
||||
foreign_method_t foreign_method_fn (VM* vm, const char* module, const char* class_name, bool is_static, const char* signature);
|
||||
};
|
||||
} //namespace wren
|
||||
|
|
|
@ -189,7 +189,7 @@ namespace wren {
|
|||
const constexpr char dummy_name_buff[N] = {0};
|
||||
const constexpr auto params = dhandy::bt::string<N, char>(dummy_name_buff) +
|
||||
dhandy::bt::make_string("(") +
|
||||
((static_cast<void>(args), dhandy::bt::make_string(",_")) + ...).template substr<1>() +
|
||||
((static_cast<void>(args), dhandy::bt::make_string(",_")) + ... + dhandy::bt::make_string("")).template substr<1>() +
|
||||
dhandy::bt::make_string(")");
|
||||
;
|
||||
char cat_buff[params.size() + 1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue