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:
Damjan Adamic
2017-04-26 21:45:46 +02:00
committed by Bertrand Songis
parent 3aceed62c9
commit 73f4b8f172
4 changed files with 22 additions and 11 deletions
+10
View File
@@ -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)