Skip to content

Commit

Permalink
[lua] set tz.debug and tz.profile global variables in lua depending o…
Browse files Browse the repository at this point in the history
…n the value of TZ_DEBUG and TZ_PROFILE
  • Loading branch information
harrand committed Feb 16, 2024
1 parent f3fee3d commit 52faf3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tz/lua/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ namespace tz::lua
s.assign_func("tz.stack_dump", LUA_FN_NAME(stack_dump));
s.assign_func("tz.callstack_dump", LUA_FN_NAME(callstack_dump));
s.assign_func("tz.breakpoint", LUA_FN_NAME(breakpoint));
s.assign_bool("tz.debug", TZ_DEBUG);
s.assign_bool("tz.profile", TZ_PROFILE);
LUA_REGISTER_ONE(print, s);
LUA_REGISTER_ONE(stack_dump, s);
s.assign_emptytable("tz.version");
Expand Down

0 comments on commit 52faf3a

Please sign in to comment.