]> git.saurik.com Git - cycript.git/blobdiff - Standard.hpp
Completed massive refactoring operation to completely isolate Objective-C.
[cycript.git] / Standard.hpp
diff --git a/Standard.hpp b/Standard.hpp
new file mode 100644 (file)
index 0000000..84cd5dd
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef CYCRIPT_STANDARD_HPP
+#define CYCRIPT_STANDARD_HPP
+
+#define _not(type) \
+    ((type) ~ (type) 0)
+
+#define _finline \
+    inline __attribute__((__always_inline__))
+#define _disused \
+    __attribute__((__unused__))
+
+#define _label__(x) _label ## x
+#define _label_(y) _label__(y)
+#define _label _label_(__LINE__)
+
+#define _packed \
+    __attribute__((__packed__))
+#define _noreturn \
+    __attribute__((__noreturn__))
+
+#endif/*CYCRIPT_STANDARD_HPP*/