From fea3ef5e72416b49db445cc3a3fcebd9e6be93bd Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 15 Apr 2017 17:29:09 +0430 Subject: wrapped the function-like macro in do-while-0 --- mutator_aux.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mutator_aux.h') diff --git a/mutator_aux.h b/mutator_aux.h index f1ad3fe..52be1b0 100644 --- a/mutator_aux.h +++ b/mutator_aux.h @@ -33,7 +33,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.* /*********************************************************************************************************************/ /*Macros and definitions*/ #define CheckSLValidity(SL) \ - if (!SL.isValid()) {return void();} + do {\ + if (!SL.isValid()) {return void();}}\ + while(0); /*********************************************************************************************************************/ using namespace clang; /*********************************************************************************************************************/ -- cgit v1.2.3