aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Utils/macros.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-28 22:10:27 +0800
committerchai <chaifix@163.com>2018-07-28 22:10:27 +0800
commit52693d68f7181d707e1a192d67a617145b358394 (patch)
tree5a39bcdf225def306738ead6683cd224e2c5762d /src/libjin/Utils/macros.h
parentd033400614e7e2c0ff49e5100c81e937e5818e74 (diff)
*update
Diffstat (limited to 'src/libjin/Utils/macros.h')
-rw-r--r--src/libjin/Utils/macros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libjin/Utils/macros.h b/src/libjin/Utils/macros.h
index 684e8e8..a57cb7c 100644
--- a/src/libjin/Utils/macros.h
+++ b/src/libjin/Utils/macros.h
@@ -8,8 +8,9 @@
#define MASK // enum
-#define CALLONCE(call) static char __dummy__=(call, 1) // ֻһ
#define onlyonce // ֻһ
+#define CALLONCE(call) static char __dummy__=(call, 1) // ֻһ
+#define SAFECALL(func, params) if(func) func(params)
#define zero(mem) memset(&mem, 0, sizeof(mem))