From b4dd2f004b3f0dea89b600998912f3cc3d08ea5e Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 10 Jan 2016 19:36:12 +0100 Subject: [PATCH] lua_threads: use own assert() macro which does not abort --- src/gui/lua/lua_threads.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);