aboutsummaryrefslogtreecommitdiff
path: root/src/universe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/universe.cpp')
-rw-r--r--src/universe.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/universe.cpp b/src/universe.cpp
index 2e7fd55..5a52f7e 100644
--- a/src/universe.cpp
+++ b/src/universe.cpp
@@ -107,6 +107,12 @@ Universe::Universe()
107 lua_setfield(L_, -2, "__gc"); // L_: settings universe {mt} 107 lua_setfield(L_, -2, "__gc"); // L_: settings universe {mt}
108 lua_setmetatable(L_, -2); // L_: settings universe 108 lua_setmetatable(L_, -2); // L_: settings universe
109 lua_pop(L_, 1); // L_: settings 109 lua_pop(L_, 1); // L_: settings
110
111 // TODO: write some tests to see what happens when we trigger errors in stripped mode
112 std::ignore = luaG_getfield(L_, 1, "strip_functions"); // L_: settings strip_functions
113 _U->stripFunctions = lua_toboolean(L_, -1) ? true : false;
114 lua_pop(L_, 1); // L_: settings
115
110 std::ignore = luaG_getfield(L_, 1, "verbose_errors"); // L_: settings verbose_errors 116 std::ignore = luaG_getfield(L_, 1, "verbose_errors"); // L_: settings verbose_errors
111 _U->verboseErrors = lua_toboolean(L_, -1) ? true : false; 117 _U->verboseErrors = lua_toboolean(L_, -1) ? true : false;
112 lua_pop(L_, 1); // L_: settings 118 lua_pop(L_, 1); // L_: settings