All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
errorMark.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/tf/diagnosticMgr.h"
#include "pxr/base/tf/errorTransport.h"
#include "pxr/base/tf/api.h"
#include <hboost/noncopyable.hpp>
+ Include dependency graph for errorMark.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  TfErrorMark


#define TF_HAS_ERRORS(marker, expr)


TF_API void TfReportActiveErrorMarks ()

Macro Definition Documentation

#define TF_HAS_ERRORS (   marker,

Convenience macro to check if errors occurred.

This macro is equivalent to

(marker.SetMark(), (expr), !marker.IsClean())

which enables it to be used as an expression:

if (TF_HAS_ERRORS(m, expr))
// cope!

Definition at line 203 of file errorMark.h.

Function Documentation

TF_API void TfReportActiveErrorMarks ( )

Report current TfErrorMark instances and the stack traces that created them to stdout for debugging purposes.

To call this function, set _enableTfErrorMarkStackTraces in errorMark.cpp and enable the TF_ERROR_MARK_TRACKING TfDebug code.