Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Add a reference to "debug mode" in assert.md #1173

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/modm/architecture/interface/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ if (not is_ok) {
}
```

Additionally, these assertions are only active in debug mode. Of course they
still evaluate and return the condition in release mode, so you can use them
Additionally, these assertions are only active in `profile=debug` (more about
profiles: [scons](https://modm.io/reference/module/modm-build-scons/#scons),
[make](https://modm.io/reference/module/modm-build-make/#make)). Of course they
still evaluate and return the condition in `profile=release`, so you can use them
just as above:

4. `bool modm_assert_continue_fail_debug()`
Expand Down
Loading