subprojects/meson-docs/docs/yaml/functions/assert.yaml
raw| 1 | name: assert |
| 2 | returns: void |
| 3 | description: Abort with an error message if `condition` evaluates to `false`. |
| 4 | |
| 5 | notes: |
| 6 | - The `message` argument is optional since 0.53.0 and defaults to print |
| 7 | the condition statement. |
| 8 | |
| 9 | posargs: |
| 10 | condition: |
| 11 | type: bool |
| 12 | description: Abort if this evaluates to `false` |
| 13 | |
| 14 | optargs: |
| 15 | message: |
| 16 | type: str |
| 17 | description: The error message to print. |