Pass string_view instead of const char* to callback functions
This commit is contained in:
parent
f84234cede
commit
6f4b0ce094
7 changed files with 63 additions and 42 deletions
|
@ -51,14 +51,11 @@ namespace {
|
|||
public:
|
||||
wren::foreign_method_t foreign_method_fn (
|
||||
wren::VM* vm,
|
||||
const char* module_ptr,
|
||||
const char* class_name_ptr,
|
||||
std::string_view module,
|
||||
std::string_view class_name,
|
||||
bool is_static,
|
||||
const char* signature_ptr
|
||||
std::string_view signature
|
||||
) {
|
||||
std::string_view module(module_ptr);
|
||||
std::string_view class_name(class_name_ptr);
|
||||
std::string_view signature(signature_ptr);
|
||||
//std::cout << "requested: \"" << module << "\" \"" <<
|
||||
// class_name << "\" \"" << signature << "\" static: " <<
|
||||
// std::boolalpha << is_static << '\n';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue