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:
+2
-2
@@ -154,8 +154,8 @@ static void write(WrenVM* vm, const char* text)
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
static void reportError(WrenErrorType type,
|
||||
const char* module, int line, const char* message, WrenVM* vm)
|
||||
static void reportError(WrenVM* vm, WrenErrorType type,
|
||||
const char* module, int line, const char* message)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user