aboutsummaryrefslogtreecommitdiff
path: root/src/universe.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-27 11:44:58 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-27 11:44:58 +0200
commit82ec0e4de089074aae26ab72040523fa7d21557d (patch)
tree16b29239c5bb1d194c4d3f7edbd0b5e3974aba39 /src/universe.cpp
parenta30ac3790edea8329c199c9c42ff4150cf20c8ba (diff)
downloadlanes-82ec0e4de089074aae26ab72040523fa7d21557d.tar.gz
lanes-82ec0e4de089074aae26ab72040523fa7d21557d.tar.bz2
lanes-82ec0e4de089074aae26ab72040523fa7d21557d.zip
namespace tweaks
Diffstat (limited to 'src/universe.cpp')
-rw-r--r--src/universe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/universe.cpp b/src/universe.cpp
index 3d1645f..9e1ac5f 100644
--- a/src/universe.cpp
+++ b/src/universe.cpp
@@ -155,8 +155,8 @@ void Universe::initializeAllocatorFunction(lua_State* L_)
155 provideAllocator = lua_tocfunction(L_, -1); // L_: settings allocator 155 provideAllocator = lua_tocfunction(L_, -1); // L_: settings allocator
156 if (provideAllocator != nullptr) { 156 if (provideAllocator != nullptr) {
157 // make sure the function doesn't have upvalues 157 // make sure the function doesn't have upvalues
158 char const* upname = lua_getupvalue(L_, -1, 1); // L_: settings allocator upval? 158 char const* _upname = lua_getupvalue(L_, -1, 1); // L_: settings allocator upval?
159 if (upname != nullptr) { // should be "" for C functions with upvalues if any 159 if (_upname != nullptr) { // should be "" for C functions with upvalues if any
160 raise_luaL_error(L_, "config.allocator() shouldn't have upvalues"); 160 raise_luaL_error(L_, "config.allocator() shouldn't have upvalues");
161 } 161 }
162 // remove this C function from the config table so that it doesn't cause problems 162 // remove this C function from the config table so that it doesn't cause problems