diff options
Diffstat (limited to 'test/API/tconfig.c')
-rw-r--r-- | test/API/tconfig.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/API/tconfig.c b/test/API/tconfig.c index 2438e33..3d49524 100644 --- a/test/API/tconfig.c +++ b/test/API/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. */ |