#include <iostream>
#include <exception>
#include <cassert>
#include "gettime.h"
#include "log.h"
Go to the source code of this file.
◆ BEGIN_DEBUG_EXCEPTION_HANDLER
#define BEGIN_DEBUG_EXCEPTION_HANDLER |
◆ CATCH_UNHANDLED_EXCEPTIONS
#define CATCH_UNHANDLED_EXCEPTIONS 0 |
◆ END_DEBUG_EXCEPTION_HANDLER
#define END_DEBUG_EXCEPTION_HANDLER |
◆ FATAL_ERROR
◆ FATAL_ERROR_IF
#define FATAL_ERROR_IF |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: ((expr) \
: (void)(0))
#define FUNCTION_NAME
Definition: debug.h:40
NORETURN void fatal_error_fn(const char *msg, const char *file, unsigned int line, const char *function)
Definition: debug.cpp:62
◆ FUNCTION_NAME
#define FUNCTION_NAME __PRETTY_FUNCTION__ |
◆ NORETURN
#define NORETURN __attribute__ ((__noreturn__)) |
◆ SANITY_CHECK
#define SANITY_CHECK |
( |
|
expr | ) |
|
Value: ((expr) \
? (void)(0) \
NORETURN void sanity_check_fn(const char *assertion, const char *file, unsigned int line, const char *function)
Definition: debug.cpp:47
◆ sanity_check
◆ debug_set_exception_handler()
void debug_set_exception_handler |
( |
| ) |
|
◆ fatal_error_fn()
NORETURN void fatal_error_fn |
( |
const char * |
msg, |
|
|
const char * |
file, |
|
|
unsigned int |
line, |
|
|
const char * |
function |
|
) |
| |
◆ sanity_check_fn()
NORETURN void sanity_check_fn |
( |
const char * |
assertion, |
|
|
const char * |
file, |
|
|
unsigned int |
line, |
|
|
const char * |
function |
|
) |
| |