class SystemTrace

namespace sys.core
class SystemTrace

A class used to assert and post error messages only on Release builds.

Methods

Assert

def Assert(test: Bool);
def Assert(test: Bool, error: String);

Brief

Throws an exception if the condition is false, but only if the "Trace" flag is set for compilation.

"Release" and "Debug" builds have the "Trace" flag set.

Should be used for critical run-time assertion in "Release" builds.

Parameters

test the assert condition
error the error message to throw

Error

def Error(error: String);

Brief

Throws an exception with a string message, but only if the "Trace" flag is set for compilation.

"Release" and "Debug" builds have the "Trace" flag set.

Parameters

error the error message to throw