mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-19 11:10:25 +02:00
Separate compilation!!!!!
This commit is contained in:
parent
fe9bdf6397
commit
b082f5f50d
28 changed files with 344 additions and 189 deletions
|
@ -6,10 +6,14 @@
|
|||
#define GC_UNLIKELY(e) __builtin_expect(e, 0)
|
||||
#define GC_LIKELY(e) __builtin_expect(e, 1)
|
||||
|
||||
#define GC_CRASH() __builtin_trap()
|
||||
|
||||
#if GC_DEBUG
|
||||
#define GC_ASSERT(x) do { if (GC_UNLIKELY(!(x))) __builtin_trap(); } while (0)
|
||||
#define GC_ASSERT(x) do { if (GC_UNLIKELY(!(x))) GC_CRASH(); } while (0)
|
||||
#define GC_UNREACHABLE() GC_CRASH()
|
||||
#else
|
||||
#define GC_ASSERT(x) do { } while (0)
|
||||
#define GC_UNREACHABLE() __builtin_unreachable()
|
||||
#endif
|
||||
|
||||
#define GC_ASSERT_EQ(a, b) GC_ASSERT((a) == (b))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue