HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
errorMark.h File Reference
+ 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.

Classes

class  TfErrorMark
 

Macros

#define TF_HAS_ERRORS(marker, expr)
 

Functions

TF_API void TfReportActiveErrorMarks ()
 

Macro Definition Documentation

#define TF_HAS_ERRORS (   marker,
  expr 
)

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.