Static methods

staticassert(level:AssertLevel, condition:Bool, ?message:String):Dynamic

Checks whether the given expression evaluates to true. If this is not the case, an ArmAssertionException is thrown or a warning is printed (depending on the assertion level).

The assert level describes the severity of the assertion. If the severity is lower than the level stored in the arm_assert_level flag, the assertion is omitted from the code so that it doesn't decrease the runtime performance.

Parameters:

level

The severity of this assertion.

condition

The conditional expression to test.

message

Optional message to display when the assertion fails.

See also: