![]() |
VR-Link API Documentation for HLA 1516
|
An implementation of DtAssert, and helper classes. More...
Go to the source code of this file.
Classes | |
| class | DtAssert |
| DtAssert (the class) helps implement DtAssert (the MACRO) by storing static member variables. More... | |
Macros | |
| #define | __DTFUNC__ "-Unknown Function-" |
| Note: FUNCTION macro is not defined in Microsoft VC++ 6.0. More... | |
| #define | DtAssert(a) |
| DtAssert is a more flexible version of std::assert. More... | |
An implementation of DtAssert, and helper classes.
| #define __DTFUNC__ "-Unknown Function-" |
Note: FUNCTION macro is not defined in Microsoft VC++ 6.0.
| #define DtAssert | ( | a | ) |
DtAssert is a more flexible version of std::assert.
The macro version of DtAssert should be used by anyone wishing a better version of std::assert. DtAssert can be turned on and off in production code. This has the same name as DtAssert (the class) which is OK as long as the macro definition appears after the class and has a different CTOR signature.
It is not safe to use DtAssert in global objects initialized before main() is called as some static variables used by DtAssert may not be initialized. If you want to use this in a safe way you can set DtAssert::theAssertFunction first, via DtAssert::warn(), DtAssert::fatal() or DtAssert::ignore()