lua_threads: use own assert() macro which does not abort

This commit is contained in:
Stefan Seyfried
2016-01-10 19:36:12 +01:00
parent 80d65e33ed
commit b4dd2f004b

View File

@@ -24,7 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <assert.h>
//#include <assert.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
@@ -33,6 +33,11 @@
#include <gui/lua/luainstance.h>
#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);