![]() |
Protium
Math and Design Features
|
#include <stdlib.h>#include <iostream>

Go to the source code of this file.
Classes | |
| struct | CompileTimeError< int > |
| Body-less template. More... | |
| struct | CompileTimeError< true > |
| Fully-defined template. More... | |
Macros | |
| #define | PROTIUM_RUNTIME_ASSERT(expr, msg) {if(!expr) std::cerr<<##msg<<std::endl; abort();} |
| Use for runtime assertions. More... | |
| #define | PROTIUM_STATIC_ASSERT(expr, msg) { CompileTimeError<((expr) != 0)> ERROR_##msg; (void)ERROR_##msg; } |
| Use for performing static assertion. More... | |
| #define PROTIUM_RUNTIME_ASSERT | ( | expr, | |
| msg | |||
| ) | {if(!expr) std::cerr<<##msg<<std::endl; abort();} |
| #define PROTIUM_STATIC_ASSERT | ( | expr, | |
| msg | |||
| ) | { CompileTimeError<((expr) != 0)> ERROR_##msg; (void)ERROR_##msg; } |