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:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user