Skip to content

Commit

Permalink
Add entry about cfg!(overflow_checks)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelicosPhosphoros committed May 2, 2023
1 parent 1f8dc72 commit 97ddb9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/conditional-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ This can be used to enable extra debugging code in development but not in
production. For example, it controls the behavior of the standard library's
[`debug_assert!`] macro.

### `overflow_checks`

Enabled when program compiled with overflow checks enabled, e.g. in development builds.

### `proc_macro`

Set when the crate being compiled is being compiled with the `proc_macro`
Expand Down

0 comments on commit 97ddb9d

Please sign in to comment.