Skip to content

Wonkey debug debugassert

wonkey:wonkey.debug.DebugAssert

Function DebugAssert:Void( condition:Bool,message:String="Debug assert failed" )#

Generates a runtime error if a boolean expression is false (debug builds only).

This function does not execute at all in release builds, so make sure that condition doesn't inadvertantly execute any critical code.

Parameters
condition condition The boolean condition to check.
message message Runtime error message to generate.