Projectkk2glider/issue 4827 (#4855)
* Reverting a part of f94b4c743d that deals with the size of table hash. Fixes 4827, but uses more memory and CPU.
* New internal Lua traces
This commit is contained in:
committed by
Bertrand Songis
parent
3aceed62c9
commit
73f4b8f172
@@ -70,8 +70,18 @@ extern "C" {
|
||||
|
||||
#if defined(TRACE_LUA_INTERNALS_ENABLED)
|
||||
#define TRACE_LUA_INTERNALS(f_, ...) debugPrintf(("[LUA INT] " f_ "\r\n"), ##__VA_ARGS__)
|
||||
|
||||
#define TRACE_LUA_INTERNALS_WITH_LINEINFO(L, f_, ...) do { \
|
||||
lua_Debug ar; \
|
||||
if (lua_getstack(L, 1, &ar)) { \
|
||||
lua_getinfo(L, ">Sl", &ar); \
|
||||
debugPrintf("%s:%d: ", ar.short_src, ar.currentline); \
|
||||
} \
|
||||
debugPrintf(("[LUA INT] " f_ "\r\n"), ##__VA_ARGS__); \
|
||||
} while(0)
|
||||
#else
|
||||
#define TRACE_LUA_INTERNALS(...)
|
||||
#define TRACE_LUA_INTERNALS_WITH_LINEINFO(L, f_, ...)
|
||||
#endif
|
||||
|
||||
#if defined(DEBUG) && !defined(SIMU)
|
||||
|
||||
Reference in New Issue
Block a user