namespace sys.core
class SystemDebug
A class used to assert and post error messages only on Debug builds.
On Release builds these operations are ignored.
def Assert(test: Bool);
def Assert(test: Bool, error: String);
Throws an exception if the condition is false, but only if the "Debug" flag is set for compilation.
"Debug" builds have the "Debug" flag set by default.
Should be used for run-time assertion in "Debug" builds, to test conditions which should not fail.
test | the assert condition |
---|---|
error | the error message to throw |
def Error(error: String);
Throws an exception with a string message, but only if the "Debug" flag is set for compilation.
"Debug" builds have the "Debug" flag set by default.
error | the error message to throw |
---|