Torque 3D 3.7
ContentsIndexHome
PreviousUpNext
AssertISV Macro
Syntax
C++
#define AssertISV(x, y) \ { if ((x)==0) \ { if ( ::PlatformAssert::processAssert(::PlatformAssert::Fatal_ISV, __FILE__, __LINE__, y) ) { ::Platform::debugBreak(); } } }

! Assert (In Shipping Version) that the statement x is true, otherwise halt. 

If the statement x is true, continue processing. 

If the statement x is false, log the file and line where the assert occurred, the message y and exit the program displaying a dialog containing the message y. These asserts are present in both OPTIMIZED and DEBUG builds. 

This assert should only be used for rare conditions where the application cannot continue execution without seg-faulting and you want to display a nice exit message.

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!