24 #ifndef PXR_BASE_TF_DIAGNOSTIC_LITE_H
25 #define PXR_BASE_TF_DIAGNOSTIC_LITE_H
79 char const *fmt, ...) const ARCH_PRINTF_FUNCTION(2,3);
82 char const *fmt, ...) const ARCH_PRINTF_FUNCTION(2,3);
84 char const *fmt, ...) const ARCH_PRINTF_FUNCTION(2,3);
86 char const *fmt, ...) const ARCH_PRINTF_FUNCTION(2,3);
93 #define TF_CODING_ERROR \
94 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
95 TF_DIAGNOSTIC_CODING_ERROR_TYPE).IssueError
97 #define TF_CODING_WARNING \
98 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
99 TF_DIAGNOSTIC_CODING_ERROR_TYPE).IssueWarning \
101 #define TF_FATAL_CODING_ERROR \
102 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
103 TF_DIAGNOSTIC_CODING_ERROR_TYPE).IssueFatalError
105 #define TF_RUNTIME_ERROR \
106 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
107 TF_DIAGNOSTIC_RUNTIME_ERROR_TYPE).IssueError
109 #define TF_FATAL_ERROR \
110 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
111 TF_DIAGNOSTIC_FATAL_ERROR_TYPE).IssueFatalError
113 #define TF_DIAGNOSTIC_FATAL_ERROR \
114 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
115 TF_DIAGNOSTIC_RUNTIME_ERROR_TYPE).IssueFatalError
117 #define TF_DIAGNOSTIC_NONFATAL_ERROR \
118 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
119 TF_DIAGNOSTIC_WARNING_TYPE).IssueWarning
121 #define TF_DIAGNOSTIC_WARNING \
122 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT.Hide(), \
123 TF_DIAGNOSTIC_WARNING_TYPE).IssueWarning
126 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
127 TF_DIAGNOSTIC_WARNING_TYPE).IssueWarning
130 Tf_DiagnosticLiteHelper(TF_CALL_CONTEXT, \
131 TF_DIAGNOSTIC_STATUS_TYPE).IssueStatus
140 #define TF_AXIOM(cond) \
141 Tf_AxiomHelper(static_cast<bool>((cond)), TF_CALL_CONTEXT, #cond)
143 #define TF_DEV_AXIOM(cond) \
144 Tf_AxiomHelper(!ARCH_DEV_BUILD || \
145 static_cast<bool>((cond)), TF_CALL_CONTEXT, #cond)
147 #endif // !defined(doxygen)
151 #endif // PXR_BASE_TF_DIAGNOSTIC_LITE_H
constexpr Tf_DiagnosticLiteHelper(TfCallContext const &context, TfDiagnosticType type)
TF_API void IssueError(char const *fmt,...) const ARCH_PRINTF_FUNCTION(2
TF_API void TF_API void TF_API void IssueWarning(char const *fmt,...) const ARCH_PRINTF_FUNCTION(2
TF_API void TF_API void IssueFatalError(char const *fmt,...) const ARCH_PRINTF_FUNCTION(2
constexpr bool Tf_AxiomHelper(bool val, TfCallContext const &ctx, char const *txt)
TF_API void TF_API void TF_API void TF_API void IssueStatus(char const *fmt,...) const ARCH_PRINTF_FUNCTION(2
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE