Merge branch 'fix-assert' of https://github.com/maxdeviant/wren into maxdeviant-fix-assert
This commit is contained in:
commit
8c7174d1c6
1
AUTHORS
1
AUTHORS
@ -20,3 +20,4 @@ Damien Radtke <damienradtke@gmail.com>
|
|||||||
Max Ferguson <maxxferguson@gmail.com>
|
Max Ferguson <maxxferguson@gmail.com>
|
||||||
Sven Bergström <sven@underscorediscovery.com>
|
Sven Bergström <sven@underscorediscovery.com>
|
||||||
Kyle Charters <kylewcharters@gmail.com>
|
Kyle Charters <kylewcharters@gmail.com>
|
||||||
|
Marshall Bowers <elliott.codes@gmail.com>
|
||||||
|
|||||||
@ -1728,7 +1728,7 @@ void wrenGetVariable(WrenVM* vm, const char* module, const char* name,
|
|||||||
int slot)
|
int slot)
|
||||||
{
|
{
|
||||||
ASSERT(module != NULL, "Module cannot be NULL.");
|
ASSERT(module != NULL, "Module cannot be NULL.");
|
||||||
ASSERT(module != NULL, "Variable name cannot be NULL.");
|
ASSERT(name != NULL, "Variable name cannot be NULL.");
|
||||||
validateApiSlot(vm, slot);
|
validateApiSlot(vm, slot);
|
||||||
|
|
||||||
Value moduleName = wrenStringFormat(vm, "$", module);
|
Value moduleName = wrenStringFormat(vm, "$", module);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user