aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2024-12-23 14:15:59 +0900
committerYawning Angel <yawning@schwanenlied.me>2024-12-25 00:08:09 +0900
commit3a5440e4eddea3735b26689e576ba4e1102a6a3a (patch)
treef26f390da293a6f1d0c9388357678fdc5b7fe7d0 /src
parentad99d20d292ab4708996c935315c36aef58796a8 (diff)
base/runtime: Add `ensure` and `ensure_contextless`
This provides an equivalent to `assert` and `assert_contextless` that are always evaluated, ignoring `ODIN_DISABLE_ASSERT`, which is useful for enforcing API contracts or "asserting" on conditionals with side-effects.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions