qcdm: fix stringification of qcdm_xxx_if_fail() macros
Actually reading about preprocessor concatenation and stringification helps.
This commit is contained in:
@@ -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"); \
|
||||
} \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user