aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun Kuan Lee <ken2812221@gmail.com>2018-08-14 08:37:09 +0800
committerChun Kuan Lee <ken2812221@gmail.com>2018-08-14 09:19:47 +0000
commit4d0c7924d22ffaa620884c8177e21f89261d057a (patch)
tree9bd4fb483c3a5c2c86429202c70cae66080a6d70
parentddc3ec92b0e655a3da21ac2e85ec2e7ecb66c65b (diff)
Make macro compatible with MSVC
-rw-r--r--src/ui_interface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui_interface.h b/src/ui_interface.h
index 992c585b10..fe466b3ca4 100644
--- a/src/ui_interface.h
+++ b/src/ui_interface.h
@@ -75,9 +75,9 @@ public:
MSG_ERROR = (ICON_ERROR | BTN_OK | MODAL)
};
-#define ADD_SIGNALS_DECL_WRAPPER(signal_name, rtype, args...) \
- rtype signal_name(args); \
- using signal_name##Sig = rtype(args); \
+#define ADD_SIGNALS_DECL_WRAPPER(signal_name, rtype, ...) \
+ rtype signal_name(__VA_ARGS__); \
+ using signal_name##Sig = rtype(__VA_ARGS__); \
boost::signals2::connection signal_name##_connect(std::function<signal_name##Sig> fn); \
void signal_name##_disconnect(std::function<signal_name##Sig> fn);