Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
bits
Commits
f50c525c
Commit
f50c525c
authored
Jul 19, 2018
by
Gauthier Quesnel
Browse files
assert: fix missing function in NDEBUG mode
parent
a9f5ce77
Pipeline
#224
passed with stage
in 18 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
include/bits/assert.hpp
View file @
f50c525c
...
...
@@ -97,6 +97,8 @@ fail_fast(const char* type,
#define bits_expects(cond)
#define bits_ensures(cond)
#define bits_assert(cond)
#define bits_return_val_if_fail(cond, val)
#define bits_return_if_fail(cond)
#else
#define bits_expects(cond) BITS_CONTRACT_CHECK("Precondition", cond)
#define bits_ensures(cond) BITS_CONTRACT_CHECK("Postcondition", cond)
...
...
@@ -107,7 +109,6 @@ fail_fast(const char* type,
#define bits_return_if_fail(cond) \
BITS_CONTRACT_CHECK_RETURN("Precondition", cond)
#endif
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment