G+Smo
24.08.0
Geometry + Simulation Modules
|
This file contains the debugging and messaging system of G+Smo. More...
Go to the source code of this file.
Namespaces | |
gismo | |
The G+Smo namespace, containing all definitions for the library. | |
gismo::internal | |
This namespace contains functionalities that are internal to the library. | |
Macros | |
#define | GISMO_ASSERT(cond, message) |
#define | GISMO_ENSURE(cond, message) |
#define | GISMO_ERROR(message) |
#define | GISMO_HPP_HEADER(x) |
#define | GISMO_NO_IMPLEMENTATION |
#define | GISMO_UNUSED(x) |
#define | gsDebug |
#define | gsInfo |
#define | gsWarn |
Functions | |
template<typename T > | |
bool | gsIsfinite (T a) |
template<typename T > | |
bool | gsIsnumber (T a) |
This file contains the debugging and messaging system of G+Smo.
This file is part of the G+Smo library.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Author(s): A. Mantzaflaris
#define GISMO_ASSERT | ( | cond, | |
message | |||
) |
Runtime assertions which display a message
#define GISMO_ENSURE | ( | cond, | |
message | |||
) |
Runtime check and display error message. This command is the same as GISMO_ASSERT but it is executed in release builds as well.
#define GISMO_ERROR | ( | message | ) |
Runtime error message
#define GISMO_HPP_HEADER | ( | x | ) |
Used for optional inclusion of .hpp header files in the .h files. Allows to drop dependencies on the .hpp files when using GISMO_BUILD_LIB for compiling a library instance. When compiling as a pure template library CMake will detect dependency on .hpp files.
#define GISMO_NO_IMPLEMENTATION |
Runtime "no implementation" error happens when the user calls a
virtual member function without a default implementation.
#define GISMO_UNUSED | ( | x | ) |
Denote a variable as unused, used to silence warnings in release mode builds.
#define gsDebug |
Logging messages: gsDebug and gsDebugVar(.) are for debugging messages and are enabled in debug mode only.
Note that gsDebug cannot be given as a parameter to another function.
#define gsInfo |
Logging messages: gsInfo is ment to be the standard output stream, like for the output of the executables. In general, the library should not write to gsInfo.
#define gsWarn |
Logging messages: gsWarn is for warnings, eg, for missing functionality or problem in the input.
Note that gsWarn cannot be given as a parameter to another function.