mirror of
https://github.com/whoahq/whoa.git
synced 2026-10-30 11:27:08 +03:00
fix(ui): derive IsDebugBuild from build configuration
This commit is contained in:
1 parent
caf009cd28
commit
b0827f5ce1
1 file changed
+4
@@ -120,7 +120,11 @@ int32_t Script_GetDebugStats(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_IsDebugBuild(lua_State* L) {
|
||||
#if defined(NDEBUG)
|
||||
lua_pushboolean(L, 0);
|
||||
#else
|
||||
lua_pushboolean(L, 1);
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user