diff --git a/src/gui/lua/lua_threads.cpp b/src/gui/lua/lua_threads.cpp index 8885f7ea2..c4f7fdee3 100644 --- a/src/gui/lua/lua_threads.cpp +++ b/src/gui/lua/lua_threads.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +//#include #include #include #include @@ -33,6 +33,11 @@ #include #include "lua_threads.h" +#define assert(x) do { \ + if (x) \ + fprintf(stderr, "CLLThread:%s:%d assert(%s) failed\n", __func__, __LINE__, #x); \ +} while (0) + int __strerror_r(int err, char* buf, size_t len) { memset(buf, '\0', len);