![]() |
Templates -- Meow
2.0.-1
A C++ template contains kinds of interesting classes and functions
|
Contains assert macro for meowpp's debugging tools. More...
#include <cstdio>
#include <cstdlib>
Go to the source code of this file.
Namespaces | |
meow | |
Macros | |
#define | MEOWPP_STRINGIFY(x) #x |
#define | MEOWPP_TOSTRING(x) MEOWPP_STRINGIFY(x) |
#define | Assert(expr,...) |
A macro for assert whether a expression is failed or not. More... | |
Contains assert macro for meowpp's debugging tools.
You can use
to remove all the debugging code.
Definition in file assert.h.
#define Assert | ( | expr, | |
... | |||
) |
A macro for assert whether a expression is failed or not.
expr | The expression to be tested. |
... | Error information to be printed to stderr when the expr is failed. |
When expression is failed, it will call fprintf(stderr, ...)
to print out the message follows by calling abort()
to halt the program.
test::abort()
instead of normal abort()
function. #define MEOWPP_TOSTRING | ( | x | ) | MEOWPP_STRINGIFY(x) |