mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
lua_threads: use own assert() macro which does not abort
Origin commit data
------------------
Branch: ni/coolstream
Commit: d1ef35957a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-10 (Sun, 10 Jan 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
committed by
Michael Liebmann
parent
cba424b0d8
commit
ca07ca5646
@@ -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);
|
||||
|
Reference in New Issue
Block a user