25 #ifndef OPENSUBDIV3_FAR_ERROR_H
26 #define OPENSUBDIV3_FAR_ERROR_H
28 #include "../version.h"
31 namespace OPENSUBDIV_VERSION {
83 void Warning(
const char *format, ...);
89 using namespace OPENSUBDIV_VERSION;
93 #endif // OPENSUBDIV3_FAR_ERROR_H
void Warning(const char *format,...)
Sends an OSD warning message.
void Error(ErrorType err)
Sends an OSD error.
Issue a generic programming error, but continue execution.
Issue a generic runtime error, but continue execution.
void SetWarningCallback(WarningCallbackFunc func)
Sets the warning callback function (default is "printf")
void(* WarningCallbackFunc)(const char *message)
Sets the warning callback function (default is "printf")
Issue an internal programming error, but continue execution.
void SetErrorCallback(ErrorCallbackFunc func)
Sets the error callback function (default is "printf")
void(* ErrorCallbackFunc)(ErrorType err, const char *message)
Issue a fatal error and end the program.