Go to the source code of this file.
|
UT_API void | UT_Assert (const char *file, int linenum, const char *function, const char *condition, const char *reason, int &ignoreflag) |
|
UT_API void | UT_AssertFormat (const char *file, int linenum, const char *function, const char *condition, int &ignoreflag, const char *reason_fmt...) |
|
UT_API void | UTdisableInteractiveAssertsOn () |
|
UT_API void | UTdisableInteractiveAssertsOff () |
|
template<typename TO_T , typename FROM_T > |
SYS_FORCE_INLINE TO_T | UTverify_cast (FROM_T from) |
|
UT_API void | UTsubclassResponsibility (const char *classname, const char *member) |
|
#define UT_ASSERT |
( |
|
ZZ | ) |
((void)0) |
- Examples:
- field3d/f3d_io.C, field3d/ROP_Field3D.C, FS/FS_HomeHelper.C, GUI/GUI_PolygonNormalShade.C, karma_procedurals/BRAY_HdSphere.C, packedshareddata/GU_PackedSharedData.C, packedsphere/GU_PackedSphere.C, RAY/RAY_DemoEdgeDetectFilter.C, RAY/RAY_DemoGT.C, RAY/RAY_DemoSprite.C, RAY/RAY_DemoVolumeSphere.C, SHOP/SHOP_Multi.C, SIM/GAS_NetVDBSliceExchange.C, SIM/SNOW_Solver.C, SOP/MSS_BrushHairLenSelector.C, SOP/SOP_PrimVOP.C, standalone/i3dsphere.C, tetprim/GEO_PrimTetra.C, VEX/VEX_Sort.C, and VOP/VOP_Switch.C.
Definition at line 156 of file UT_Assert.h.
#define UT_ASSERT_FUNC ((char *)0) |
#define UT_ASSERT_LEVEL_NONE 0 |
#define UT_ASSERT_LEVEL_NORMAL 1 |
#define UT_ASSERT_LEVEL_PARANOID 2 |
#define UT_ASSERT_LEVEL_SLOW 3 |
#define UT_ASSERT_MSG |
( |
|
ZZ, |
|
|
|
... |
|
) |
| ((void)0) |
#define UT_ASSERT_MSG_P |
( |
|
ZZ, |
|
|
|
... |
|
) |
| ((void)0) |
#define UT_ASSERT_MSG_SLOW |
( |
|
ZZ, |
|
|
|
... |
|
) |
| ((void)0) |
#define UT_ASSERT_P |
( |
|
ZZ | ) |
((void)0) |
#define UT_ASSERT_SLOW |
( |
|
ZZ | ) |
((void)0) |
#define UT_IF_ASSERT |
( |
|
ZZ | ) |
|
#define UT_IF_ASSERT_P |
( |
|
ZZ | ) |
|
#define UT_IF_ASSERT_SLOW |
( |
|
ZZ | ) |
|
#define UT_IFNOT_ASSERT |
( |
|
ZZ | ) |
ZZ |
#define UT_IFNOT_ASSERT_P |
( |
|
ZZ | ) |
ZZ |
#define UT_IFNOT_ASSERT_SLOW |
( |
|
ZZ | ) |
ZZ |
#define UT_VERIFY |
( |
|
expr | ) |
((void)(expr)) |
#define UT_VERIFY_MSG |
( |
|
expr, |
|
|
|
... |
|
) |
| ((void)(expr)) |
#define UT_VERIFY_P |
( |
|
expr | ) |
((void)(expr)) |
#define UT_VERIFY_RETURN |
( |
|
ZZ, |
|
|
|
RV |
|
) |
| if (!(ZZ)) { return RV; } |
#define UT_VERIFY_RETURN_VOID |
( |
|
ZZ | ) |
if (!(ZZ)) { return; } |
Enumerator |
---|
UT_ASSERT_RESPONSE_DEBUG |
|
UT_ASSERT_RESPONSE_IGNORE |
|
UT_ASSERT_RESPONSE_IGNORE_ALL |
|
UT_ASSERT_RESPONSE_TRACE |
|
UT_ASSERT_RESPONSE_ERROR |
|
Definition at line 213 of file UT_Assert.h.
UT_API void UT_Assert |
( |
const char * |
file, |
|
|
int |
linenum, |
|
|
const char * |
function, |
|
|
const char * |
condition, |
|
|
const char * |
reason, |
|
|
int & |
ignoreflag |
|
) |
| |
UT_API void UT_AssertFormat |
( |
const char * |
file, |
|
|
int |
linenum, |
|
|
const char * |
function, |
|
|
const char * |
condition, |
|
|
int & |
ignoreflag, |
|
|
const char * |
reason_fmt... |
|
) |
| |
UT_API void UTsubclassResponsibility |
( |
const char * |
classname, |
|
|
const char * |
member |
|
) |
| |
UTsubclassResponsibility raises an assertion indicating that a subclass has not implemented an inherited method. This should only be called from a base class method that is not expected to run.
template<typename TO_T , typename FROM_T >