diff options
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.cpp b/src/state.cpp index bae2ba5..6d3910b 100644 --- a/src/state.cpp +++ b/src/state.cpp | |||
@@ -209,8 +209,8 @@ namespace state { | |||
209 | lua_pushcclosure(from, U->provideAllocator, 0); // L: provideAllocator() | 209 | lua_pushcclosure(from, U->provideAllocator, 0); // L: provideAllocator() |
210 | luaG_pushstring(from, hint); // L: provideAllocator() "<hint>" | 210 | luaG_pushstring(from, hint); // L: provideAllocator() "<hint>" |
211 | lua_call(from, 1, 1); // L: result | 211 | lua_call(from, 1, 1); // L: result |
212 | AllocatorDefinition* const _def{ luaG_tofulluserdata<AllocatorDefinition>(from, -1) }; | 212 | lanes::AllocatorDefinition* const _def{ luaG_tofulluserdata<lanes::AllocatorDefinition>(from, -1) }; |
213 | if (!_def || _def->version != AllocatorDefinition::kAllocatorVersion) { | 213 | if (!_def || _def->version != lanes::AllocatorDefinition::kAllocatorVersion) { |
214 | raise_luaL_error(from, "Bad config.allocator function, must provide a valid AllocatorDefinition"); | 214 | raise_luaL_error(from, "Bad config.allocator function, must provide a valid AllocatorDefinition"); |
215 | } | 215 | } |
216 | lua_State* const _L{ lua_newstate(_def->allocF, _def->allocUD) }; | 216 | lua_State* const _L{ lua_newstate(_def->allocF, _def->allocUD) }; |