summaryrefslogtreecommitdiff
path: root/include/wrapable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wrapable.h')
-rw-r--r--include/wrapable.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/wrapable.h b/include/wrapable.h
index c92da4d..bcc3776 100644
--- a/include/wrapable.h
+++ b/include/wrapable.h
@@ -24,6 +24,16 @@
return 0; \
}
+#define WRAPABLE_DEF_FUNC_WITH_RETURN(ret, func, ...) \
+{ \
+ if (mHandler) \
+ { \
+ func ## _enabled = false; \
+ return mHandler-> func (__VA_ARGS__); \
+ } \
+ return ret; \
+}
+
#define WRAPABLE_HND(rtype, func, ...) public: rtype func (__VA_ARGS__); private: unsigned int mCurr_ ## func ; public:
#define WRAPABLE_HND_FUNC(func, ...) \