HDK
|
#include "pxr/pxr.h"
#include "pxr/base/arch/attributes.h"
#include "pxr/base/tf/api.h"
#include "pxr/base/arch/buildMode.h"
#include "pxr/base/arch/hints.h"
#include "pxr/base/tf/callContext.h"
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | Tf_DiagnosticLiteHelper |
Macros | |
#define | TF_CODING_ERROR |
#define | TF_CODING_WARNING |
#define | TF_FATAL_CODING_ERROR |
#define | TF_RUNTIME_ERROR |
#define | TF_FATAL_ERROR |
#define | TF_DIAGNOSTIC_FATAL_ERROR |
#define | TF_DIAGNOSTIC_NONFATAL_ERROR |
#define | TF_DIAGNOSTIC_WARNING |
#define | TF_WARN |
#define | TF_STATUS |
#define | TF_AXIOM(cond) Tf_AxiomHelper(static_cast<bool>((cond)), TF_CALL_CONTEXT, #cond) |
#define | TF_DEV_AXIOM(cond) |
Functions | |
constexpr bool | Tf_AxiomHelper (bool val, TfCallContext const &ctx, char const *txt) |
Stripped down version of diagnostic.h
that doesn't define std::string
.
This file provides the same functionality as diagnostic.h
, except that all strings must be passed as plain const
char*
, and not by std::string
, and the macro TF_FUNCTION_NAME()
is only defined by diagnostic.h
In particular, this header file does not include the C++ header file <
string
>
, making inclusion of this file a very light-weight addition. Include this file, as opposed to pxr/base/tf/diagnostic.h in header files that need to remain as light-weight as possible.
These macros are safe to use in multiple threads.
Definition in file diagnosticLite.h.
#define TF_AXIOM | ( | cond | ) | Tf_AxiomHelper(static_cast<bool>((cond)), TF_CALL_CONTEXT, #cond) |
Definition at line 140 of file diagnosticLite.h.
#define TF_CODING_ERROR |
Definition at line 93 of file diagnosticLite.h.
#define TF_CODING_WARNING |
Definition at line 97 of file diagnosticLite.h.
#define TF_DEV_AXIOM | ( | cond | ) |
Definition at line 143 of file diagnosticLite.h.
#define TF_DIAGNOSTIC_FATAL_ERROR |
Definition at line 113 of file diagnosticLite.h.
#define TF_DIAGNOSTIC_NONFATAL_ERROR |
Definition at line 117 of file diagnosticLite.h.
#define TF_DIAGNOSTIC_WARNING |
Definition at line 121 of file diagnosticLite.h.
#define TF_FATAL_CODING_ERROR |
Definition at line 101 of file diagnosticLite.h.
#define TF_FATAL_ERROR |
Definition at line 109 of file diagnosticLite.h.
#define TF_RUNTIME_ERROR |
Definition at line 105 of file diagnosticLite.h.
#define TF_STATUS |
Definition at line 129 of file diagnosticLite.h.
#define TF_WARN |
Definition at line 125 of file diagnosticLite.h.
enum TfDiagnosticType : int |
Enum describing various diagnostic conditions.
Definition at line 55 of file diagnosticLite.h.
constexpr bool Tf_AxiomHelper | ( | bool | val, |
TfCallContext const & | ctx, | ||
char const * | txt | ||
) |
Definition at line 134 of file diagnosticLite.h.