From b0827f5ce1957821f01c764e2d819893f0f145f3 Mon Sep 17 00:00:00 2001 From: aomizu Date: Sat, 19 Sep 2026 08:32:27 +0900 Subject: [PATCH] fix(ui): derive IsDebugBuild from build configuration --- src/ui/game/GameScript.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/game/GameScript.cpp b/src/ui/game/GameScript.cpp index 1168f4b..3d82c2d 100644 --- a/src/ui/game/GameScript.cpp +++ b/src/ui/game/GameScript.cpp @@ -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; }