Permalink
Browse files

C++11 requires a mandatory space when concatenating string literals.

  • Loading branch information...
rofafor committed Feb 7, 2016
1 parent 777be25 commit 201b50eb9d10012560b3143e811340980dda7fcc
Showing with 9 additions and 10 deletions.
  1. +9 −10 common.h
View
@@ -32,18 +32,17 @@
#define SECTION_FILTER_TABLE_SIZE 5
#define ERROR_IF_FUNC(exp, errstr, func, ret) \
do { \
if (exp) { \
char tmp[64]; \
esyslog("[%s,%d]: "errstr": %s", __FILE__, __LINE__, \
strerror_r(errno, tmp, sizeof(tmp))); \
func; \
ret; \
} \
#define ERROR_IF_FUNC(exp, errstr, func, ret) \
do { \
if (exp) { \
char tmp[64]; \
esyslog("[%s,%d]: " errstr ": %s", __FILE__, __LINE__, \
strerror_r(errno, tmp, sizeof(tmp))); \
func; \
ret; \
} \
} while (0)
#define ERROR_IF_RET(exp, errstr, ret) ERROR_IF_FUNC(exp, errstr, ,ret);
#define ERROR_IF(exp, errstr) ERROR_IF_FUNC(exp, errstr, , );

0 comments on commit 201b50e

Please sign in to comment.