Lua
C++
Edit

Assert

This function produces a runtime error if the supplied condition or object is false or NULL.

Syntax

Paraemter Description
condition if false a runtime error is generated
o if NULL a runtime error is generated
message error message to display

Example

#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;
}
Copyright © 2024 Ultra Software.
All rights reserved.