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:
Bob Nystrom
2017-03-22 07:26:19 -07:00
parent 907db83e1c
commit 02bcefcbe4
9 changed files with 83 additions and 10 deletions
+2 -2
View File
@@ -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)
{