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)
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)
◆ ASSERTX
#define ASSERTX | ( | x, | |
... | |||
) |
Value:
do \
{ \
if(x) \
{ \
} \
else \
{ \
#x, \
__LINE__, \
__FILE__, \
#__VA_ARGS__, \
{__VA_ARGS__}, \
__PRETTY_FUNCTION__); \
} \
} while(false)
◆ BREAK_IN_DEBUG
◆ DIE
#define DIE | ( | message | ) |
Value:
◆ DIEX
#define DIEX | ( | message, | |
... | |||
) |
Value:
message, \
__LINE__, \
__FILE__, \
#__VA_ARGS__, \
{__VA_ARGS__}, \
__PRETTY_FUNCTION__)