#include "Platform.h"
#include "String.h"
Go to the source code of this file.
◆ MANA_ASSERT
#define MANA_ASSERT |
( |
|
expression | ) |
((void)0) |
◆ MANA_ASSERT_MESSAGE
#define MANA_ASSERT_MESSAGE |
( |
|
expression, |
|
|
|
... |
|
) |
| ((void)0) |
◆ MANA_BUG
#define MANA_BUG |
( |
|
... | ) |
(void)(mana::Trace({ __FILE__, "(", std::to_string(__LINE__), "): BUG!: ", __VA_ARGS__, "\n" }), std::terminate()) |
◆ MANA_CHECK
#define MANA_CHECK |
( |
|
expression | ) |
((void)0) |
◆ MANA_ERROR
#define MANA_ERROR |
( |
|
... | ) |
(void)(mana::Trace(__VA_ARGS__), std::terminate()) |
◆ MANA_NOT_IMPLEMENTED
#define MANA_NOT_IMPLEMENTED |
( |
| ) |
|
Value: (void)( \
(
mana::Trace({ __FILE__,
"(", std::to_string(__LINE__),
"): Not implemented!\n" }), std::terminate()) \
)
void Trace(const std::string &message)
Definition: String.h:33
◆ MANA_VERIFY
#define MANA_VERIFY |
( |
|
expression | ) |
|
Value: (void)( \
(!!(expression)) || \
(
mana::Trace({ __FILE__,
"(", std::to_string(__LINE__),
"): (", #expression,
")\n" }), std::terminate(), 0) \
)
◆ MANA_VERIFY_MESSAGE
#define MANA_VERIFY_MESSAGE |
( |
|
expression, |
|
|
|
... |
|
) |
| |
Value: (void)( \
(!!(expression)) || \
(
mana::Trace({ __FILE__,
"(", std::to_string(__LINE__),
"): ", __VA_ARGS__,
" (", #expression,
")\n" }), std::terminate(), 0) \
)
◆ MANA_WARNING
#define MANA_WARNING |
( |
|
... | ) |
(void)(mana::Trace(__VA_ARGS__)) |
mana (library)
- Author
- Shun Moriya
- Date
- 2003-