forked from Mirror/wren
Add test for user data.
Also moved the VM parameter in the error callback to be first like it is in other callbacks.
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
#include "reset_stack_after_call_abort.h"
|
||||
#include "reset_stack_after_foreign_construct.h"
|
||||
#include "slots.h"
|
||||
#include "user_data.h"
|
||||
|
||||
// The name of the currently executing API test.
|
||||
const char* testName;
|
||||
@ -59,6 +60,9 @@ static WrenForeignMethodFn bindForeignMethod(
|
||||
|
||||
method = slotsBindMethod(fullName);
|
||||
if (method != NULL) return method;
|
||||
|
||||
method = userDataBindMethod(fullName);
|
||||
if (method != NULL) return method;
|
||||
|
||||
fprintf(stderr,
|
||||
"Unknown foreign method '%s' for test '%s'\n", fullName, testName);
|
||||
|
||||
Reference in New Issue
Block a user