From 19c535ef0244a7c1942b9aae185c57171660cd5b Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 9 Dec 2021 16:56:24 +0100 Subject: [PATCH] Poison assert() --- common.h | 3 +++ emu.h | 2 +- ovni.c | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common.h b/common.h index ea49685..7e4d55e 100644 --- a/common.h +++ b/common.h @@ -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 */ diff --git a/emu.h b/emu.h index 8764a1c..d95a3bb 100644 --- a/emu.h +++ b/emu.h @@ -20,11 +20,11 @@ #include +#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 { diff --git a/ovni.c b/ovni.c index bb7e45a..1e385ed 100644 --- a/ovni.c +++ b/ovni.c @@ -43,8 +43,6 @@ # define gettid() ((pid_t)syscall(SYS_gettid)) #endif -#pragma GCC poison assert - /* Data per process */ struct ovni_rproc rproc = {0};