Euphoria
assert.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  eu::assertlib::AssertArgumentValue
 

Namespaces

 eu
 
 eu::assertlib
 

Macros

#define BREAK_IN_DEBUG()
 
#define IMPLEMENT_ASSERT_LIB
 
#define ASSERT(x)
 
#define ASSERTX(x, ...)
 
#define DIE(message)
 
#define DIEX(message, ...)
 

Functions

void eu::assertlib::begin_throwing ()
 
bool eu::assertlib::is_throwing ()
 
void eu::assertlib::on_assert (const char *expression, int line, const char *file, const char *argstr, const std::vector< AssertArgumentValue > &arguments, const char *function)
 

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   x)
Value:
do \
{ \
if(x) \
{ \
} \
else \
{ \
#x, \
__LINE__, \
__FILE__, \
"", \
{}, \
__PRETTY_FUNCTION__); \
} \
} while(false)
#define BREAK_IN_DEBUG()
Definition: assert.h:10
bool is_throwing()
void on_assert(const char *expression, int line, const char *file, const char *argstr, const std::vector< AssertArgumentValue > &arguments, const char *function)

Definition at line 29 of file assert.h.

◆ ASSERTX

#define ASSERTX (   x,
  ... 
)
Value:
do \
{ \
if(x) \
{ \
} \
else \
{ \
#x, \
__LINE__, \
__FILE__, \
#__VA_ARGS__, \
{__VA_ARGS__}, \
__PRETTY_FUNCTION__); \
} \
} while(false)

Definition at line 48 of file assert.h.

◆ BREAK_IN_DEBUG

#define BREAK_IN_DEBUG ( )
Value:
do \
{ \
} while(false)

Definition at line 10 of file assert.h.

◆ DIE

#define DIE (   message)
Value:
message, \
__LINE__, \
__FILE__, \
"", \
{}, \
__PRETTY_FUNCTION__)

Definition at line 67 of file assert.h.

◆ DIEX

#define DIEX (   message,
  ... 
)
Value:
message, \
__LINE__, \
__FILE__, \
#__VA_ARGS__, \
{__VA_ARGS__}, \
__PRETTY_FUNCTION__)

Definition at line 76 of file assert.h.

◆ IMPLEMENT_ASSERT_LIB

#define IMPLEMENT_ASSERT_LIB

Definition at line 26 of file assert.h.