OpenSubdiv
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1//
2// Copyright 2013 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://opensubdiv.org/license.
6//
7
8#ifndef OPENSUBDIV3_FAR_ERROR_H
9#define OPENSUBDIV3_FAR_ERROR_H
10
11#include "../version.h"
12
13namespace OpenSubdiv {
14namespace OPENSUBDIV_VERSION {
15
16namespace Far {
17
25
26
28typedef void (*ErrorCallbackFunc)(ErrorType err, const char *message);
29
37
38
40typedef void (*WarningCallbackFunc)(const char *message);
41
49
50
51//
52// The following are intended for internal use only (and will eventually
53// be moved within namespace internal)
54//
55
62void Error(ErrorType err, const char *format, ...);
63
68void Warning(const char *format, ...);
69
70
71} // end namespace
72
73} // end namespace OPENSUBDIV_VERSION
74using namespace OPENSUBDIV_VERSION;
75
76} // end namespace OpenSubdiv
77
78#endif // OPENSUBDIV3_FAR_ERROR_H
void Error(ErrorType err, const char *format,...)
Sends an OSD error with a message (internal use only)
void(* WarningCallbackFunc)(const char *message)
The warning callback function type (default is "printf")
Definition error.h:40
void SetErrorCallback(ErrorCallbackFunc func)
Sets the error callback function (default is "printf")
void SetWarningCallback(WarningCallbackFunc func)
Sets the warning callback function (default is "printf")
void Warning(const char *format,...)
Sends an OSD warning message (internal use only)
void(* ErrorCallbackFunc)(ErrorType err, const char *message)
The error callback function type (default is "printf")
Definition error.h:28
@ FAR_FATAL_ERROR
Issue a fatal error and end the program.
Definition error.h:20
@ FAR_INTERNAL_CODING_ERROR
Issue an internal programming error, but continue execution.
Definition error.h:21
@ FAR_CODING_ERROR
Issue a generic programming error, but continue execution.
Definition error.h:22
@ FAR_NO_ERROR
No error. Move along.
Definition error.h:19
@ FAR_RUNTIME_ERROR
Issue a generic runtime error, but continue execution.
Definition error.h:23