QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_error.h File Reference

Go to the source code of this file.

Macros

#define ON_ASSERT(cond)   ON_Assert(cond,__FILE__,__LINE__, #cond " is false")
 
#define ON_ASSERT_OR_RETURN(cond, returncode)   do{if (!(cond)) {ON_Assert(false,__FILE__,__LINE__, #cond " is false");return(returncode);}}while(0)
 
#define ON_ERROR(msg)   ON_Error(__FILE__,__LINE__,msg)
 
#define ON_WARNING(msg)   ON_Warning(__FILE__,__LINE__,msg)
 

Functions

ON_DECL void ON_Assert (int, const char *, int, const char *,...)
 
ON_DECL void ON_EnableDebugBreak (int bEnableDebugBreak)
 
ON_DECL void ON_EnableDebugBreakOnFirstError (int bEnableDebugBreak)
 
ON_DECL void ON_EnableDebugErrorMessage (int bEnableDebugErrorMessage)
 
ON_DECL void ON_Error (const char *, int, const char *,...)
 
ON_BEGIN_EXTERNC ON_DECL void ON_ErrorMessage (int, const char *)
 
ON_DECL int ON_GetDebugBreak (void)
 
ON_DECL int ON_GetDebugBreakOnFirstError (void)
 
ON_DECL int ON_GetDebugErrorMessage (void)
 
ON_DECL int ON_GetErrorCount (void)
 
ON_DECL int ON_GetMathErrorCount (void)
 
ON_DECL int ON_GetWarningCount (void)
 
ON_DECL void ON_MathError (const char *, const char *, const char *)
 
ON_DECL void ON_Warning (const char *, int, const char *,...)
 

Macro Definition Documentation

◆ ON_ASSERT

#define ON_ASSERT ( cond)    ON_Assert(cond,__FILE__,__LINE__, #cond " is false")

◆ ON_ASSERT_OR_RETURN

#define ON_ASSERT_OR_RETURN ( cond,
returncode )   do{if (!(cond)) {ON_Assert(false,__FILE__,__LINE__, #cond " is false");return(returncode);}}while(0)

◆ ON_ERROR

#define ON_ERROR ( msg)    ON_Error(__FILE__,__LINE__,msg)

◆ ON_WARNING

#define ON_WARNING ( msg)    ON_Warning(__FILE__,__LINE__,msg)

Function Documentation

◆ ON_Assert()

ON_DECL void ON_Assert ( int bCondition,
const char * sFileName,
int line_number,
const char * sFormat,
... )

◆ ON_EnableDebugBreak()

ON_DECL void ON_EnableDebugBreak ( int bEnableDebugBreak)

◆ ON_EnableDebugBreakOnFirstError()

ON_DECL void ON_EnableDebugBreakOnFirstError ( int bEnableDebugBreak)

◆ ON_EnableDebugErrorMessage()

ON_DECL void ON_EnableDebugErrorMessage ( int bEnableDebugErrorMessage)

◆ ON_Error()

ON_DECL void ON_Error ( const char * sFileName,
int line_number,
const char * sFormat,
... )

◆ ON_ErrorMessage()

ON_BEGIN_EXTERNC ON_DECL void ON_ErrorMessage ( int message_type,
const char * sErrorMessage )

◆ ON_GetDebugBreak()

ON_DECL int ON_GetDebugBreak ( void )

◆ ON_GetDebugBreakOnFirstError()

ON_DECL int ON_GetDebugBreakOnFirstError ( void )

◆ ON_GetDebugErrorMessage()

ON_DECL int ON_GetDebugErrorMessage ( void )

◆ ON_GetErrorCount()

ON_DECL int ON_GetErrorCount ( void )

◆ ON_GetMathErrorCount()

ON_DECL int ON_GetMathErrorCount ( void )

◆ ON_GetWarningCount()

ON_DECL int ON_GetWarningCount ( void )

◆ ON_MathError()

ON_DECL void ON_MathError ( const char * sModuleName,
const char * sErrorType,
const char * sFunctionName )

◆ ON_Warning()

ON_DECL void ON_Warning ( const char * sFileName,
int line_number,
const char * sFormat,
... )