fix(ui): derive IsDebugBuild from build configuration

This commit is contained in:
aomizu committed 2026-09-19 08:32:27 +09:00
1 parent caf009cd28
commit b0827f5ce1
1 file changed
+4
+4
View File
@@ -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;
}