feat(ui): implement Script_IsDebugBuild (#171)
Some checks failed
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Has been cancelled
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Has been cancelled
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Has been cancelled

This commit is contained in:
Marco Tylus 2026-09-19 11:41:19 +09:00 committed by GitHub
parent ea13456360
commit 6923b07f6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,7 +120,13 @@ int32_t Script_GetDebugStats(lua_State* L) {
}
int32_t Script_IsDebugBuild(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
#if defined(NDEBUG)
lua_pushboolean(L, 0);
#else
lua_pushboolean(L, 1);
#endif
return 1;
}
int32_t Script_RegisterCVar(lua_State* L) {