debugAssert

fnvoid debugAssert(bool condition, lazy string msg = "Assertion failed")

Asserts a condition in debug builds only.

Use this for expensive checks that should be disabled in release.

Parameters

conditionThe condition to check
msgError message if condition is false