Skip to content
Snippets Groups Projects
Commit fbed7c34 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Improve Assert macro

- do not use anymore gcc extension for __VA_ARGS__

- check that parameters are always correct (string literal could be
unchecked under NDEBUG)

- when using NDEBUG, assert exception cannot be evaluated. Previously
result was not used but non trivial assertions such as
  `container.find(key) != container.end()`
could be evaluated. More specifically functions with potential
boundary effects.

- also, this allows to compile the code with the `-pedantic` flag.
parent 741eb739
No related branches found
No related tags found
1 merge request!37Feature/language
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment