mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #953 from dwfreed/fix-printtext.h
Use ##__VA_ARGS__ extension to allow for argument-less ...
This commit is contained in:
commit
d815c88050
@ -46,16 +46,16 @@ void printtext_deinit(void);
|
|||||||
printformat_module_dest(MODULE_NAME, dest, ##formatnum)
|
printformat_module_dest(MODULE_NAME, dest, ##formatnum)
|
||||||
# define printformat_gui(formatnum...) \
|
# define printformat_gui(formatnum...) \
|
||||||
printformat_module_gui(MODULE_NAME, ##formatnum)
|
printformat_module_gui(MODULE_NAME, ##formatnum)
|
||||||
#elif defined (_ISOC99_SOURCE)
|
#elif __STDC_VERSION__ >= 199901L
|
||||||
/* C99 */
|
/* C99 */
|
||||||
# define printformat(server, target, level, formatnum, ...) \
|
# define printformat(server, target, level, formatnum, ...) \
|
||||||
printformat_module(MODULE_NAME, server, target, level, formatnum, __VA_ARGS__)
|
printformat_module(MODULE_NAME, server, target, level, formatnum, ##__VA_ARGS__)
|
||||||
# define printformat_window(window, level, formatnum, ...) \
|
# define printformat_window(window, level, formatnum, ...) \
|
||||||
printformat_module_window(MODULE_NAME, window, level, formatnum, __VA_ARGS__)
|
printformat_module_window(MODULE_NAME, window, level, formatnum, ##__VA_ARGS__)
|
||||||
# define printformat_dest(dest, formatnum, ...) \
|
# define printformat_dest(dest, formatnum, ...) \
|
||||||
printformat_module_dest(MODULE_NAME, dest, formatnum, __VA_ARGS__)
|
printformat_module_dest(MODULE_NAME, dest, formatnum, ##__VA_ARGS__)
|
||||||
# define printformat_gui(formatnum, ...) \
|
# define printformat_gui(formatnum, ...) \
|
||||||
printformat_module_gui(MODULE_NAME, formatnum, __VA_ARGS__)
|
printformat_module_gui(MODULE_NAME, formatnum, ##__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
/* inline/static */
|
/* inline/static */
|
||||||
#ifdef G_CAN_INLINE
|
#ifdef G_CAN_INLINE
|
||||||
|
Loading…
Reference in New Issue
Block a user