aboutsummaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-11-20 12:47:41 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-11-20 12:47:41 +0100
commit872826ecaca5370e3492385cff3795d995b33ec7 (patch)
tree6604e8c27564b2fba6d183b304e188a2cf0cb12e /src/state.cpp
parentb8b4335dba57e1c6159b77d5cb7bbe91318664b4 (diff)
downloadlanes-872826ecaca5370e3492385cff3795d995b33ec7.tar.gz
lanes-872826ecaca5370e3492385cff3795d995b33ec7.tar.bz2
lanes-872826ecaca5370e3492385cff3795d995b33ec7.zip
AllocatorDefinition implementation improvements
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp
index 6c49694..88f406a 100644
--- a/src/state.cpp
+++ b/src/state.cpp
@@ -159,7 +159,7 @@ namespace state {
159 return luaL_newstate(); 159 return luaL_newstate();
160 } else { 160 } else {
161 lanes::AllocatorDefinition const _def{ U->resolveAllocator(from, hint) }; 161 lanes::AllocatorDefinition const _def{ U->resolveAllocator(from, hint) };
162 return lua_newstate(_def.allocF, _def.allocUD); 162 return _def.newState();
163 } 163 }
164 } 164 }
165 ) 165 )