e: Fix macro so it can be used as a statement
Should fix devilhorn's compile error. Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 61783
This commit is contained in:
parent
015e05f81f
commit
e32856d084
|
@ -1,12 +1,12 @@
|
||||||
#ifdef E_TYPEDEFS
|
#ifdef E_TYPEDEFS
|
||||||
|
|
||||||
#define e_error_message_show(args...) \
|
#define e_error_message_show(args...) do \
|
||||||
{ \
|
{ \
|
||||||
char __tmpbuf[PATH_MAX]; \
|
char __tmpbuf[PATH_MAX]; \
|
||||||
\
|
\
|
||||||
snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \
|
snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \
|
||||||
e_error_message_show_internal(__tmpbuf); \
|
e_error_message_show_internal(__tmpbuf); \
|
||||||
}
|
} while (0)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#ifndef E_ERROR_H
|
#ifndef E_ERROR_H
|
||||||
|
|
Loading…
Reference in New Issue