Dont redefine abort() as it may leak into other files

Differential Revision: D3661871

fbshipit-source-id: 14a9d076299b4f21d17a2bed68aa30b796c438a5
This commit is contained in:
Emil Sjolander 2016-08-03 01:57:46 -07:00 committed by Facebook Github Bot 4
parent 4fce8ea4f4
commit f80b93afd3
1 changed files with 5 additions and 3 deletions

View File

@ -21,12 +21,14 @@
#define FB_ASSERTIONS_ENABLED 1
#endif
#if !(FB_ASSERTIONS_ENABLED)
#define abort()
#if FB_ASSERTIONS_ENABLED
#define CSS_ABORT() abort()
#else
#define CSS_ABORT()
#endif
#define CSS_ASSERT(X, message) \
if (!(X)) { \
fprintf(stderr, "%s\n", message); \
abort(); \
CSS_ABORT(); \
}