HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Assert.h File Reference
#include <UT/UT_Assert.h>
#include "pxr/pxr.h"
+ Include dependency graph for UT_Assert.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
PXR_NAMESPACE_OPEN_SCOPE T * GusdUTverify_ptr (T *ptr)
 
template<class T >
T & GusdUTverify_val (T &&val)
 

Function Documentation

template<class T >
PXR_NAMESPACE_OPEN_SCOPE T* GusdUTverify_ptr ( T *  ptr)

Helper for adding inline assertions to validate that a pointer is non-null.

Example:

Definition at line 41 of file UT_Assert.h.

template<class T >
T& GusdUTverify_val ( T &&  val)

Helper for inline assertions of the validity of some non-pointer type.

Example:

UsdStage stage = GusdUTverify_val(GetStage(...));

Definition at line 55 of file UT_Assert.h.