debugAssert
fn
void 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
condition | The condition to check |
msg | Error message if condition is false |