aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Utils/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Utils/macros.h')
-rw-r--r--src/libjin/Utils/macros.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libjin/Utils/macros.h b/src/libjin/Utils/macros.h
new file mode 100644
index 0000000..684e8e8
--- /dev/null
+++ b/src/libjin/Utils/macros.h
@@ -0,0 +1,16 @@
+#ifndef __JIN_MACROS_H
+#define __JIN_MACROS_H
+#include <cstring>
+
+#define implement // ʵֽӿ
+
+#define shared // ķ
+
+#define MASK // enum
+
+#define CALLONCE(call) static char __dummy__=(call, 1) // ֻһ
+#define onlyonce // ֻһ
+
+#define zero(mem) memset(&mem, 0, sizeof(mem))
+
+#endif \ No newline at end of file