aboutsummaryrefslogtreecommitdiffstats
path: root/mutator_aux.h
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-04-15 12:59:09 +0000
committerbloodstalker <thabogre@gmail.com>2017-04-15 12:59:09 +0000
commitfea3ef5e72416b49db445cc3a3fcebd9e6be93bd (patch)
tree842e6c0448cc07e430ce5a52b2909a637516013f /mutator_aux.h
parentadded a new class to read the xml report created by M0. (diff)
downloadmutator-fea3ef5e72416b49db445cc3a3fcebd9e6be93bd.tar.gz
mutator-fea3ef5e72416b49db445cc3a3fcebd9e6be93bd.zip
wrapped the function-like macro in do-while-0
Diffstat (limited to '')
-rw-r--r--mutator_aux.h4
1 files changed, 3 insertions, 1 deletions
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;
/*********************************************************************************************************************/