This #if does not compile in MSVC: fatal error C1012: unmatched parenthesis: missing ')'
I think it does not like __has_feature which expands to nothing, so && ) is syntax error.
People typically do
Imho it is better to disable address sanitizer on function. Otherwise this will prevent users using meow hash in their project at all if they want to use asan.
Do disable asan on function you use __attribute__((no_sanitize_address)) for gcc/clang or __declspec(no_sanitize_address) for MSVC
This #if does not compile in MSVC:
fatal error C1012: unmatched parenthesis: missing ')'
I think it does not like__has_feature
which expands to nothing, so&& )
is syntax error. People typically dobefore using __has_feature across compilers.
Imho it is better to disable address sanitizer on function. Otherwise this will prevent users using meow hash in their project at all if they want to use asan. Do disable asan on function you use
__attribute__((no_sanitize_address))
for gcc/clang or__declspec(no_sanitize_address)
for MSVC