From d519f3e364804d1dbf103e5caef31dc5942a26fe Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 19 Jan 2012 18:48:26 -0600 Subject: wmc: fix stringification of wmc_xxx_if_fail() macros Actually reading about preprocessor concatenation and stringification helps. --- libwmc/src/errors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libwmc/src') diff --git a/libwmc/src/errors.h b/libwmc/src/errors.h index 5ad22c1a..9d5aba04 100644 --- a/libwmc/src/errors.h +++ b/libwmc/src/errors.h @@ -45,7 +45,7 @@ enum { #define wmc_return_if_fail(e) \ { \ if (!(e)) { \ - fprintf (stderr, "failed: ##e##\n"); \ + fprintf (stderr, "failed: " #e "\n"); \ return; \ } \ } @@ -53,7 +53,7 @@ enum { #define wmc_return_val_if_fail(e, v) \ { \ if (!(e)) { \ - fprintf (stderr, "failed: ##e##\n"); \ + fprintf (stderr, "failed: " #e "\n"); \ return v; \ } \ } -- cgit v1.2.3-70-g09d2