From 40b08c5f179ae553b22b14e5aa55fe18f925e11a Mon Sep 17 00:00:00 2001 From: Sen Han <00hnes@gmail.com> Date: Wed, 25 Jul 2018 19:47:15 +0800 Subject: [PATCH] add more strict macro definition check --- aco.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aco.h b/aco.h index e4a6f32..b1db94a 100644 --- a/aco.h +++ b/aco.h @@ -136,6 +136,9 @@ struct aco_s{ } \ } while(0) +#if defined(aco_attr_no_asan) + #error "aco_attr_no_asan already defined" +#endif #if defined(ACO_USE_ASAN) #if defined(__has_feature) #if __has_feature(address_sanitizer)