This function produces a runtime error if the supplied condition or object is false or NULL.
Paraemter | Description |
---|---|
condition | if false a runtime error is generated |
o | if NULL a runtime error is generated |
message | error message to display |
#include "UltraEngine.h"
using namespace UltraEngine;
int main(int argc, const char* argv[])
{
try
{
Assert(false);
}
catch (std::exception e)
{
WString error = e.what();
DebugBreak();
}
return 0;
}