diff options
Diffstat (limited to 'test/tconfig.c')
-rw-r--r-- | test/tconfig.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/tconfig.c b/test/tconfig.c index 7ab442e..25e9ad5 100644 --- a/test/tconfig.c +++ b/test/tconfig.c @@ -25,13 +25,18 @@ * with the macro size. */ #define vrfy_cint_type(ctype, uctype, ctype_macro) \ - /* check signed type size */ \ - vrfy_macrosize(ctype, ctype_macro, #ctype_macro); \ - /* check unsigned type size */ \ - vrfy_macrosize(uctype, ctype_macro, #ctype_macro); + do { \ + /* check signed type size */ \ + vrfy_macrosize(ctype, ctype_macro, #ctype_macro); \ + /* check unsigned type size */ \ + vrfy_macrosize(uctype, ctype_macro, #ctype_macro); \ + } while (0) /* verify C type sizes: verify the sizeof type with the macro size. */ -#define vrfy_ctype(type, macro) vrfy_macrosize(type, macro, #macro); +#define vrfy_ctype(type, macro) \ + do { \ + vrfy_macrosize(type, macro, #macro); \ + } while (0) /* verify if the sizeof(type) matches size defined in macro. */ /* Needs this extra step so that we can print the macro name. */ |