![]() |
CNORXZ
Container with Native Operation Routines and Expressions
|
warning and error makros More...
#include <iostream>#include <sstream>Go to the source code of this file.
Macros | |
| #define | CXZ_ERRTAG __FILE__ << '@' << __LINE__ << '(' << __func__ << "): error" |
| #define | CXZ_WARNTAG __FILE__ << '@' << __LINE__ << ": warning" |
| #define | CXZ_ERROR(errmsg) |
| #define | CXZ_WARNING(errmsg) |
| #define | CXZ_ASSERT(statement, errmsg) if(not (statement)) { CXZ_ERROR(errmsg); } |
warning and error makros
Definition of macros that can be used for convenient error handling and warnings
Copyright (c) 2022 Christian Zimmermann. All rights reserved. Mail: chize.nosp@m.ta@f.nosp@m.3l.de
Definition in file assert.h.
| #define CXZ_ASSERT | ( | statement, | |
| errmsg ) if(not (statement)) { CXZ_ERROR(errmsg); } |
| #define CXZ_ERROR | ( | errmsg | ) |
throw error
| errmsg | error message |
| #define CXZ_ERRTAG __FILE__ << '@' << __LINE__ << '(' << __func__ << "): error" |
| #define CXZ_WARNING | ( | errmsg | ) |
print warning
| errmsg | warning message |