Remove CSSAssertSetFailFunc
Summary: Remove CSSAssertSetFailFunc and use CSSLogLevelError for throwing managed exception. Reviewed By: emilsjolander Differential Revision: D4155452 fbshipit-source-id: 5a19c79a212f204d13064527fd6e5843bab76e6b
This commit is contained in:
committed by
Facebook Github Bot
parent
8a7183f465
commit
c382d513fb
@@ -33,16 +33,10 @@
|
||||
#define CSS_ABORT()
|
||||
#endif
|
||||
|
||||
#if CSS_ASSERT_FAIL_ENABLED
|
||||
#define CSS_ERROR_FUNC(message) CSSAssertFail(message)
|
||||
#else
|
||||
#define CSS_ERROR_FUNC(message) CSSLog(CSSLogLevelError, "%s", message)
|
||||
#endif
|
||||
|
||||
#ifndef CSS_ASSERT
|
||||
#define CSS_ASSERT(X, message) \
|
||||
if (!(X)) { \
|
||||
CSS_ERROR_FUNC(message); \
|
||||
CSS_ABORT(); \
|
||||
#define CSS_ASSERT(X, message) \
|
||||
if (!(X)) { \
|
||||
CSSLog(CSSLogLevelError, "%s", message); \
|
||||
CSS_ABORT(); \
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user