All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
error.h File Reference
#include "../version.h"

Go to the source code of this file.

Namespaces

 OpenSubdiv
 
 OpenSubdiv::OPENSUBDIV_VERSION
 
 OpenSubdiv::OPENSUBDIV_VERSION::Far
 

Typedefs

typedef void(* ErrorCallbackFunc )(ErrorType err, const char *message)
 The error callback function type (default is "printf") More...
 
typedef void(* WarningCallbackFunc )(const char *message)
 The warning callback function type (default is "printf") More...
 

Enumerations

enum  ErrorType {
  FAR_NO_ERROR,
  FAR_FATAL_ERROR,
  FAR_INTERNAL_CODING_ERROR,
  FAR_CODING_ERROR,
  FAR_RUNTIME_ERROR
}
 

Functions

void SetErrorCallback (ErrorCallbackFunc func)
 Sets the error callback function (default is "printf") More...
 
void SetWarningCallback (WarningCallbackFunc func)
 Sets the warning callback function (default is "printf") More...
 
void Error (ErrorType err, const char *format,...)
 Sends an OSD error with a message (internal use only) More...
 
void Warning (const char *format,...)
 Sends an OSD warning message (internal use only) More...