namespace sys.core
class SystemTrace
def Assert(test: Bool);
def Assert(test: Bool, error: String);
Throws an exception if the condition is false, but only if the "Trace" flag is set for compilation. "Release" builds have the "Trace" flag set. Should be used for critical run-time assertion in "Release" builds.
test=> the assert condition
error=>
def Error(error: String);
Throws an exception with a string message, but only if the "Trace" flag is set for compilation. "Release" builds have the "Trace" flag set.
error=> the error message to throw