objc
include
runtime-gcc
objc
assert.h
Go to the documentation of this file.
1
9
#pragma once
10
#include <
runtime-sys/sys.h
>
11
22
#ifdef DEBUG
23
#define objc_assert(condition) \
24
if (!(condition)) { \
25
sys_panicf("ASSERT FAIL: %s, file %s, line %d", #condition, __FILE__, \
26
__LINE__); \
27
}
28
#else
29
#define objc_assert(condition) \
30
if (!(condition)) { \
31
sys_panicf("ASSERT FAIL: %s", #condition); \
32
}
33
#endif
sys.h
System management functions.