40 #ifndef INCLUDED_DISTI_ASSERT_H
41 #define INCLUDED_DISTI_ASSERT_H
50 DISTI_EXPORT
void swap( DistiException& first, DistiException& second );
57 DISTI_EXPORT DistiException(
const DistiException& other );
58 DISTI_EXPORT DistiException& operator=( DistiException other );
59 #ifdef DISTI_HAS_RVAL_REFS
60 DISTI_EXPORT DistiException( DistiException&& other );
62 virtual DISTI_EXPORT ~DistiException();
63 virtual DISTI_EXPORT
const char* what()
const;
64 friend DISTI_EXPORT
void swap( DistiException& first, DistiException& second );
108 #if defined( GLS_DEBUG )
109 # define DistiAssert( exp ) (void)( ( exp ) || ( ::disti::DistiAssertDebug( # exp, __FILE__, __LINE__ ), 0 ) )
111 # define DistiAssert( exp ) (void)( ( exp ) || ( ::disti::DistiAssertRelease( # exp, __FILE__, __LINE__ ), 0 ) )
114 #define GLS_UNUSED( exp ) \
117 (void)sizeof( exp ); \
134 #if defined( GLS_DEBUG ) || !defined( NDEBUG )
135 # define GLS_ASSERT( exp ) \
138 (void)( ( exp ) || ( ::disti::GlsAssert( #exp, __FILE__, __LINE__ ), 0 ) ); \
141 # define GLS_ASSERT( exp ) GLS_UNUSED( exp )
155 #define GLS_VERIFY( exp ) (void)( ( exp ) || ( ::disti::GlsVerify( #exp, __FILE__, __LINE__ ), 0 ) )
160 DISTI_EXPORT
void DistiAssertDebug(
const char* expression,
const char* filename,
unsigned int lineNumber );
164 DISTI_EXPORT
void DistiAssertRelease(
const char* expression,
const char* filename,
unsigned int lineNumber );
167 DISTI_EXPORT
void GlsVerify(
const char* expression,
const char* filename,
unsigned int lineNumber );
170 DISTI_EXPORT
void GlsAssert(
const char* expression,
const char* filename,
unsigned int lineNumber );
T * ValidatePointer(const T *const p)
Definition: disti_assert.h:174
void DistiAssertDebug(const char *expression, const char *filename, unsigned int lineNumber)
A file for all GL Studio files to include.
void(* DistiAssertHandler)(const char *errMessage)
Definition: disti_assert.h:72
Definition: disti_assert.h:53
void DistiAssertRelease(const char *expression, const char *filename, unsigned int lineNumber)
void GlsVerify(const char *expression, const char *filename, unsigned int lineNumber)
Macros and helper code to determine what subset of C++11/14/17 is available.
void GlsAssert(const char *expression, const char *filename, unsigned int lineNumber)
Definition: bmpimage.h:46