33 BENTLEYDLL_EXPORT static void PerformBeAssert(
wchar_t const* _Message,
wchar_t const*_File,
unsigned _Line);
36 BENTLEYDLL_EXPORT static void DefaultAssertionFailureHandler (
wchar_t const* message,
wchar_t const* file,
unsigned line);
45 #define BeAssert(_Expression) ((void)0)
46 #define BeDataAssert(_Expression) ((void)0)
47 #define BeAssertOnce(_Expression) ((void)0)
48 #define BeDataAssertOnce(_Expression) ((void)0)
56 #define BeAssert(_Expression) (void)( (!!(_Expression)) || (BeAssertFunctions::PerformBeAssert(_CRT_WIDE(#_Expression), _CRT_WIDE(__FILE__), __LINE__), 0) )
58 #define BeAssertOnce(_Expression) \
60 static int st_bAssertedOnce = 0; \
61 if (!st_bAssertedOnce) \
63 (!!(_Expression)) || (BeAssertFunctions::PerformBeAssert(_CRT_WIDE(#_Expression), _CRT_WIDE(__FILE__), __LINE__), 0); \
64 st_bAssertedOnce = 1; \
#define BENTLEYDLL_EXPORT
Definition: Bentley.h:249
The default file attribute.
Definition: TextTableHandler.h:216
Definition: BeAssert.h:17
#define BEGIN_BENTLEY_NAMESPACE
Definition: Bentley.r.h:24
AssertType
Definition: BeAssert.h:19
Defines typedefs and constants that can be used across other namespaces. All Bentley-authored C++ sou...
void T_BeAssertHandler(wchar_t const *_Message, wchar_t const *_File, unsigned _Line, AssertType atype)
Definition: BeAssert.h:27
#define END_BENTLEY_NAMESPACE
Definition: Bentley.r.h:25