24#ifndef PXR_BASE_TF_DIAGNOSTIC_HELPER_H
25#define PXR_BASE_TF_DIAGNOSTIC_HELPER_H
28#include "pxr/base/tf/api.h"
30#include "pxr/base/arch/defines.h"
41#if defined(ARCH_OS_LINUX) || defined(ARCH_OS_DARWIN)
50PXR_NAMESPACE_OPEN_SCOPE
52typedef std::any TfDiagnosticInfo;
60 const TfCallContext &context,
62 const std::string &msg);
66 const TfCallContext &context,
68 const std::string &msg);
72 const TfCallContext &context,
78 const TfCallContext &context,
84 const TfCallContext &context,
85 const TfDiagnosticInfo &info,
87 const
std::
string &msg);
91 const TfCallContext &context,
92 const TfDiagnosticInfo &info,
97Tf_PostQuietlyErrorHelper(
98 const TfCallContext &context,
100 const TfDiagnosticInfo &info,
101 const
std::
string &msg);
104Tf_PostQuietlyErrorHelper(
105 const TfCallContext &context,
107 const TfDiagnosticInfo &info,
111Tf_PostQuietlyErrorHelper(
112 const TfCallContext &context,
114 const
std::
string &msg);
117Tf_PostQuietlyErrorHelper(
118 const TfCallContext &context,
125Tf_PostWarningHelper(const TfCallContext &context,
126 const
std::
string &msg);
129Tf_PostWarningHelper(const TfCallContext &context,
134 const TfCallContext &context,
136 const
std::
string &msg);
140 const TfCallContext &context,
142 const
std::
string &msg);
146 const TfCallContext &context,
152 const TfCallContext &context,
158 const TfCallContext &context,
159 const TfDiagnosticInfo &info,
161 const
std::
string &msg);
165 const TfCallContext &context,
166 const TfDiagnosticInfo &info,
172 const TfCallContext &context,
177 const TfCallContext &context,
178 const
std::
string &msg);
183 const TfCallContext &context,
185 const
std::
string &msg);
189 const TfCallContext &context,
195 const TfCallContext &context,
196 const TfDiagnosticInfo &info,
198 const
std::
string &msg);
202 const TfCallContext &context,
203 const TfDiagnosticInfo &info,
207PXR_NAMESPACE_CLOSE_SCOPE
Define function attributes.
#define ARCH_PRINTF_FUNCTION(_fmt, _firstArg)
Macro used to indicate a function takes a printf-like specification.
An enum class that records both enum type and enum value.
Represents an object that contains error information.
TfDiagnosticType
Enum describing various diagnostic conditions.