aboutsummaryrefslogtreecommitdiff
path: root/src/keeper.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-18 09:03:43 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-18 09:03:43 +0200
commite3818609b54c81a83aa73beb322ea9c282b7add8 (patch)
treeb165d7925206ceb10a851fc8c1eed8b8566e7727 /src/keeper.cpp
parent54b47307ce4b2e21bc12c1602c77fecf55380452 (diff)
downloadlanes-e3818609b54c81a83aa73beb322ea9c282b7add8.tar.gz
lanes-e3818609b54c81a83aa73beb322ea9c282b7add8.tar.bz2
lanes-e3818609b54c81a83aa73beb322ea9c282b7add8.zip
When it is a function, config.allocator is called with a string hint
Diffstat (limited to 'src/keeper.cpp')
-rw-r--r--src/keeper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keeper.cpp b/src/keeper.cpp
index e058114..11f1797 100644
--- a/src/keeper.cpp
+++ b/src/keeper.cpp
@@ -830,7 +830,7 @@ void Keepers::initialize(Universe& U_, lua_State* L_, int const nbKeepers_, int
830 auto _initOneKeeper = [U = &U_, L = L_, gc_threshold = gc_threshold](Keeper& keeper_, int const i_) { 830 auto _initOneKeeper = [U = &U_, L = L_, gc_threshold = gc_threshold](Keeper& keeper_, int const i_) {
831 STACK_CHECK_START_REL(L, 0); 831 STACK_CHECK_START_REL(L, 0);
832 // note that we will leak K if we raise an error later 832 // note that we will leak K if we raise an error later
833 KeeperState const _K{ state::CreateState(U, L) }; // L_: settings _K: 833 KeeperState const _K{ state::CreateState(U, L, "keeper") }; // L_: settings _K:
834 if (_K == nullptr) { 834 if (_K == nullptr) {
835 raise_luaL_error(L, "out of memory while creating keeper states"); 835 raise_luaL_error(L, "out of memory while creating keeper states");
836 } 836 }