#undef some macros which are redefined elsewhere

This commit is contained in:
Luchs
2015-04-16 14:44:41 +02:00
parent fdf459b1a5
commit 8d90333ebc
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -333,6 +333,9 @@ static int dumpInstruction(WrenVM* vm, ObjFn* fn, int i, int* lastLine)
// Return how many bytes this instruction takes, or -1 if it's an END.
if (code == CODE_END) return -1;
return i - start;
#undef READ_BYTE
#undef READ_SHORT
}
int wrenDumpInstruction(WrenVM* vm, ObjFn* fn, int i)
+2
View File
@@ -1219,6 +1219,8 @@ static bool runInterpreter(WrenVM* vm)
UNREACHABLE();
return false;
}
#undef READ_BYTE
#undef READ_SHORT
// Creates an [ObjFn] that invokes a method with [signature] when called.
static ObjFn* makeCallStub(WrenVM* vm, ObjModule* module, const char* signature)