1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:19:26 +08:00

opt: build function log string during compilation

This commit is contained in:
0O0o0oOoO00
2026-02-02 23:20:27 +08:00
parent d20d185bd6
commit 526bd09594

View File

@@ -46,16 +46,16 @@ static fnset_TimeScaleT get_Time_set_timeScale() {
#define IS_ENABLED(f) m_flag.f.load()
#define ENABLE(n) \
SPDLOG_INFO("Enable {}", #n); \
SPDLOG_INFO("Enable " #n); \
m_flag.n.store(true)
#define DISABLE(n) \
SPDLOG_INFO("Disable {}", #n); \
SPDLOG_INFO("Disable " #n); \
m_flag.n.store(false)
#define CALLED(f) \
if (IS_ENABLED(HOOKED_LUA_FUNCTION_TRACE)) { \
SPDLOG_INFO("{} called", #f); \
SPDLOG_INFO(#f " called"); \
}
LuaStatePauser::LuaStatePauser(lua_State* L) : m_L(L) {}