From 4473419cb80f1f36aa5510ea4acf58ff0a547062 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 14 Jul 2013 15:06:47 +0200 Subject: [PATCH] polish `PARSECALL' macro checked for object file invariance --- src/include/ngspice/inpmacs.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/include/ngspice/inpmacs.h b/src/include/ngspice/inpmacs.h index e94dd8107..dd5799e32 100644 --- a/src/include/ngspice/inpmacs.h +++ b/src/include/ngspice/inpmacs.h @@ -44,5 +44,8 @@ Copyright 1990 Regents of the University of California. All rights reserved. /* and now a special one for calling INPdevParse which returns an * already concatenated list of error messages or NUL */ -#define PARSECALL(args)\ -current->error = INPerrCat(current->error,INPdevParse args ); + +#define PARSECALL(args) \ + do { \ + current->error = INPerrCat(current->error, INPdevParse args); \ + } while(0)