Dont redefine abort() as it may leak into other files
Differential Revision: D3661871 fbshipit-source-id: 14a9d076299b4f21d17a2bed68aa30b796c438a5
This commit is contained in:
parent
4fce8ea4f4
commit
f80b93afd3
|
@ -21,12 +21,14 @@
|
||||||
#define FB_ASSERTIONS_ENABLED 1
|
#define FB_ASSERTIONS_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(FB_ASSERTIONS_ENABLED)
|
#if FB_ASSERTIONS_ENABLED
|
||||||
#define abort()
|
#define CSS_ABORT() abort()
|
||||||
|
#else
|
||||||
|
#define CSS_ABORT()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CSS_ASSERT(X, message) \
|
#define CSS_ASSERT(X, message) \
|
||||||
if (!(X)) { \
|
if (!(X)) { \
|
||||||
fprintf(stderr, "%s\n", message); \
|
fprintf(stderr, "%s\n", message); \
|
||||||
abort(); \
|
CSS_ABORT(); \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue