summaryrefslogtreecommitdiff
path: root/libqcdm
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-01-11 12:53:06 -0600
committerDan Williams <dcbw@redhat.com>2012-01-11 12:53:06 -0600
commit1804ae2fe52acfee52f70aba5fb0acb9888a9c8b (patch)
tree1d0a35c7820dd602e9a4dfc38e7b7ed081cfcab3 /libqcdm
parent2e2c8ad7efb42924b2928af287be67f95b27b48f (diff)
qcdm: fix stringification of qcdm_xxx_if_fail() macros
Actually reading about preprocessor concatenation and stringification helps.
Diffstat (limited to 'libqcdm')
-rw-r--r--libqcdm/src/errors.h6
1 files changed, 3 insertions, 3 deletions
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"); \
} \
}