diff options
Diffstat (limited to 'src/allocator.cpp')
-rw-r--r-- | src/allocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/allocator.cpp b/src/allocator.cpp index 84acde5..243583b 100644 --- a/src/allocator.cpp +++ b/src/allocator.cpp | |||
@@ -35,7 +35,7 @@ namespace lanes | |||
35 | { | 35 | { |
36 | AllocatorDefinition& AllocatorDefinition::Validated(lua_State* const L_, StackIndex const idx_) | 36 | AllocatorDefinition& AllocatorDefinition::Validated(lua_State* const L_, StackIndex const idx_) |
37 | { | 37 | { |
38 | lanes::AllocatorDefinition* const _def{ luaG_tofulluserdata<lanes::AllocatorDefinition>(L_, idx_) }; | 38 | lanes::AllocatorDefinition* const _def{ luaW_tofulluserdata<lanes::AllocatorDefinition>(L_, idx_) }; |
39 | // raise an error and don't return if the full userdata at the specified index is not a valid AllocatorDefinition | 39 | // raise an error and don't return if the full userdata at the specified index is not a valid AllocatorDefinition |
40 | if (!_def) { | 40 | if (!_def) { |
41 | raise_luaL_error(L_, "Bad config.allocator function, provided value is not a userdata"); | 41 | raise_luaL_error(L_, "Bad config.allocator function, provided value is not a userdata"); |