Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
afddfcb3
Commit
afddfcb3
authored
Dec 19, 2018
by
Ondřej Surý
Browse files
Define __ADDRESS_SANITIZER__ if compiling under clang's AddressSanitizer
(cherry picked from commit
e1ce3a3d
)
parent
1ca8b35c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/include/isc/util.h
View file @
afddfcb3
...
...
@@ -208,6 +208,15 @@
#define ISC_UNREACHABLE()
#endif
#if !defined(__has_feature)
#define __has_feature(x) 0
#endif
/* GCC defines __ADDRESS_SANITIZER__, so reuse the macro for clang */
#if __has_feature(address_sanitizer)
#define __ADDRESS_SANITIZER__
#endif
#ifdef UNIT_TESTING
extern
void
mock_assert
(
const
int
result
,
const
char
*
const
expression
,
const
char
*
const
file
,
const
int
line
);
...
...
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