From 1804ae2fe52acfee52f70aba5fb0acb9888a9c8b Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 11 Jan 2012 12:53:06 -0600 Subject: qcdm: fix stringification of qcdm_xxx_if_fail() macros Actually reading about preprocessor concatenation and stringification helps. --- libqcdm/src/errors.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libqcdm/src/errors.h') diff --git a/libqcdm/src/errors.h b/libqcdm/src/errors.h index 51b7155c..b6e49728 100644 --- a/libqcdm/src/errors.h +++ b/libqcdm/src/errors.h @@ -60,7 +60,7 @@ enum { #define qcdm_return_if_fail(e) \ { \ if (!(e)) { \ - qcdm_warn (0, "failed: ##e##\n"); \ + qcdm_warn (0, "failed: " #e "\n"); \ return; \ } \ } @@ -68,7 +68,7 @@ enum { #define qcdm_return_val_if_fail(e, v) \ { \ if (!(e)) { \ - qcdm_warn (0, "failed: ##e##\n"); \ + qcdm_warn (0, "failed: " #e "\n"); \ return v; \ } \ } @@ -76,7 +76,7 @@ enum { #define qcdm_warn_if_fail(e) \ { \ if (!(e)) { \ - qcdm_warn (0, "failed: ##e##\n"); \ + qcdm_warn (0, "failed: " #e "\n"); \ } \ } -- cgit v1.2.3-70-g09d2