Function name | Condition | In playgrounds and -Onone builds (the default for Xcode's Debug configuration) |
In -O builds (the default for Xcode's Release configuration) |
In -Ounchecked builds |
---|---|---|---|---|
assert | π | π | βͺ | βͺ |
assertionFailure | βͺ | π | βͺ | βͺ |
precondition | π | π | π | βͺ |
preconditionFailure | βͺ | π | π | βͺ |
fatalError | βͺ | π | π | π |
dispatchPrecondition | π | π | π | βͺ |
Last active
July 30, 2019 11:57
-
-
Save Alexander-Ignition/6878830bb7fefe718d219d52ec73f574 to your computer and use it in GitHub Desktop.
Swift Asserts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment