Poison assert()

This commit is contained in:
Rodrigo Arias 2021-12-09 16:56:24 +01:00
parent f705d707b6
commit 19c535ef02
3 changed files with 4 additions and 3 deletions

View File

@ -16,4 +16,7 @@
#define unlikely(x) __builtin_expect(!!(x), 0)
#define UNUSED(x) (void)(x)
/* Poison assert */
#pragma GCC poison assert
#endif /* COMMON_H */

2
emu.h
View File

@ -20,11 +20,11 @@
#include <stdio.h>
#include "common.h"
#include "ovni.h"
#include "uthash.h"
#include "parson.h"
#include "heap.h"
#include "common.h"
/* Emulated thread runtime status */
enum ethread_state {

2
ovni.c
View File

@ -43,8 +43,6 @@
# define gettid() ((pid_t)syscall(SYS_gettid))
#endif
#pragma GCC poison assert
/* Data per process */
struct ovni_rproc rproc = {0};