llog: make debug statements produce real code

Instead of defining them to nothing we now produce real code which
evaluates to "void", though. This allows us to use the macros whereever an
rvalue can be used.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-07-01 15:47:11 +02:00
parent 9e5013f51b
commit 3b795bbe6a

View File

@ -114,8 +114,8 @@ static const char *LLOG_SUBSYSTEM __attribute__((__unused__));
#define llog_debug(obj, format, ...) \
llog_ddebug((obj)->llog, (format), ##__VA_ARGS__)
#else
#define llog_ddebug(obj, format, ...)
#define llog_debug(obj, format, ...)
#define llog_ddebug(obj, format, ...) ((void)0)
#define llog_debug(obj, format, ...) ((void)0)
#endif
#define llog_info(obj, format, ...) \