xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
AssertException.h File Reference
#include <iostream>
#include "Core/ExceptionHandler.h"
Include dependency graph for AssertException.h:

Go to the source code of this file.

Macros

#define DE_ASSERT(x, msg)
#define DE_THROW(code, msg)

Macro Definition Documentation

◆ DE_ASSERT

#define DE_ASSERT ( x,
msg )
Value:
{ \
if (!(x)) { \
std::cerr << "ASSERTION FAILED: " << msg << "\n" \
<< "File: " << __FILE__ << "\n" \
<< "Line: " << __LINE__ << "\n"; \
} \
}

◆ DE_THROW

#define DE_THROW ( code,
msg )
Value:
throw Xale::Core::DbException(code, msg, __FILE__, __LINE__)
Definition ExceptionHandler.h:27