40#ifndef INCLUDED_DISTI_ASSERT_H
41#define INCLUDED_DISTI_ASSERT_H
73#ifdef DISTI_HAS_RVAL_REFS
82 virtual DISTI_EXPORT
const char*
what()
const;
122#if defined( GLS_DEBUG )
123# define DistiAssert( exp ) (void)( ( exp ) || ( ::disti::DistiAssertDebug( # exp, __FILE__, __LINE__ ), 0 ) )
125# define DistiAssert( exp ) (void)( ( exp ) || ( ::disti::DistiAssertRelease( # exp, __FILE__, __LINE__ ), 0 ) )
129#define GLS_UNUSED( exp ) \
132 (void)sizeof( exp ); \
149#if defined( GLS_DEBUG ) || !defined( NDEBUG )
150# define GLS_ASSERT( exp ) \
153 (void)( ( exp ) || ( ::disti::GlsAssert( #exp, __FILE__, __LINE__ ), 0 ) ); \
156# define GLS_ASSERT( exp ) GLS_UNUSED( exp )
170#define GLS_VERIFY( exp ) (void)( ( exp ) || ( ::disti::GlsVerify( #exp, __FILE__, __LINE__ ), 0 ) )
177DISTI_EXPORT
void DistiAssertDebug(
const char* expression,
const char* filename,
unsigned int lineNumber );
184DISTI_EXPORT
void DistiAssertRelease(
const char* expression,
const char* filename,
unsigned int lineNumber );
190DISTI_EXPORT
void GlsVerify(
const char* expression,
const char* filename,
unsigned int lineNumber );
196DISTI_EXPORT
void GlsAssert(
const char* expression,
const char* filename,
unsigned int lineNumber );
Definition: disti_assert.h:58
virtual const char * what() const
DistiException & operator=(DistiException other)
friend void swap(DistiException &first, DistiException &second)
DistiException(const char *what)
#define DistiAssert(exp)
Definition: disti_assert.h:125
A file for all GL Studio files to include.
Macros and helper code to determine what subset of C++11/14/17 is available.
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
void GlsAssert(const char *expression, const char *filename, unsigned int lineNumber)
void(* DistiAssertHandler)(const char *errMessage)
Definition: disti_assert.h:92
void DistiAssertRelease(const char *expression, const char *filename, unsigned int lineNumber)
void GlsVerify(const char *expression, const char *filename, unsigned int lineNumber)
T * ValidatePointer(const T *const p)
Definition: disti_assert.h:202
void SetGlsAssertHandler(DistiAssertHandler)
void DistiAssertDebug(const char *expression, const char *filename, unsigned int lineNumber)
void swap(DistiException &first, DistiException &second)
void SetGlsVerifyHandler(DistiAssertHandler)
void SetDistiAssertHandler(DistiAssertHandler)