From 64dd77361f7ab97365d264408afb538097c0339c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 16 Mar 2021 11:03:44 +0100 Subject: lib: rework how we "override" assert() The previous method, using zassert.h and hoping nothing includes assert.h (which, on glibc at least, just does "#undef assert" and puts its own definition in...) was fragile - and actually broke undetected. Just provide our own assert.h and control overriding by putting it in a separate directory to add to the include path (or not.) Signed-off-by: David Lamparter --- lib/xref.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/xref.h') diff --git a/lib/xref.h b/lib/xref.h index 63166b069a..949458b313 100644 --- a/lib/xref.h +++ b/lib/xref.h @@ -33,6 +33,7 @@ enum xref_type { XREFT_THREADSCHED = 0x100, XREFT_LOGMSG = 0x200, + XREFT_ASSERT = 0x280, XREFT_DEFUN = 0x300, XREFT_INSTALL_ELEMENT = 0x301, -- cgit v1.2.3