17 #if !defined(OPENNURBS_ERROR_INC_) 18 #define OPENNURBS_ERROR_INC_ 24 #define ON_ERROR(msg) ON_ErrorEx(__FILE__,__LINE__,OPENNURBS__FUNCTION__,msg) 25 #define ON_WARNING(msg) ON_WarningEx(__FILE__,__LINE__,OPENNURBS__FUNCTION__,msg) 26 #define ON_ASSERT_OR_RETURN(cond,returncode) do{if (!(cond)) {ON_ErrorEx(__FILE__,__LINE__,OPENNURBS__FUNCTION__, #cond " is false");return(returncode);}}while(0) 27 #define ON_ASSERT_OR_RETURNVOID(cond) do{if (!(cond)) {ON_ErrorEx(__FILE__,__LINE__,OPENNURBS__FUNCTION__, #cond " is false");return;}}while(0) 33 #define ON_ASSERT(cond) ON_REMOVE_ASAP_AssertEx(cond,__FILE__,__LINE__,OPENNURBS__FUNCTION__, #cond " is false") 54 int ON_GetErrorCount(
void);
61 int ON_GetWarningCount(
void);
69 int ON_GetMathErrorCount(
void);
73 int ON_GetDebugErrorMessage(
void);
76 void ON_EnableDebugErrorMessage(
int bEnableDebugErrorMessage );
79 void ON_VARGS_FUNC_CDECL ON_Error(
80 const char* file_name,
87 void ON_VARGS_FUNC_CDECL ON_ErrorEx(
88 const char* file_name,
90 const char* function_name,
96 void ON_VARGS_FUNC_CDECL ON_Warning(
97 const char* file_name,
104 void ON_VARGS_FUNC_CDECL ON_WarningEx(
105 const char* file_name,
107 const char* function_name,
114 void ON_VARGS_FUNC_CDECL ON_REMOVE_ASAP_AssertEx(
116 const char* file_name,
118 const char* function_name,