Macros | |
#define | tb_error(message, ...) { tbCore::Error::TriggerError(__FILE__, __LINE__, message, ##__VA_ARGS__); } |
#define | tb_error_if(errorTest, message, ...) { tbCore::Error::TriggerErrorIf((errorTest), __FILE__, __LINE__, message, ##__VA_ARGS__); } |
#define tb_error | ( | message, | |
... | |||
) | { tbCore::Error::TriggerError(__FILE__, __LINE__, message, ##__VA_ARGS__); } |
Creates formatted message like using printf and outputs to stdout before proceeding to trigger an error condition then invokes OnErrorFired() on each ErrorHandlerInterface that has been added to the handler list by calling: TurtleBrains::Core::Error::AddErrorHandler().
#define tb_error_if | ( | errorTest, | |
message, | |||
... | |||
) | { tbCore::Error::TriggerErrorIf((errorTest), __FILE__, __LINE__, message, ##__VA_ARGS__); } |
If the errorTest condition passes, print out message using printf, then invoke OnErrorFired() on each ErrorHandlerInterface that has been added via TurtleBrains::Core::Error::AddErrorHandler.
errorTest | An expression that will be evaluated to true/false. |
message | A printf formatted const char* const null-terminated string with information about the failure. |
... | The parameters that should be used with the printf formatted string. |