]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/mig.h
xnu-6153.11.26.tar.gz
[apple/xnu.git] / osfmk / mach / mig.h
index ee94955bc0b7bb089d066f6644c0faf7b75d1ba9..74d2d01096fc18ed164e4f8b0b9577d9cbc2300c 100644 (file)
@@ -140,6 +140,17 @@ typedef struct mig_symtab {
                                                                 */
 } mig_symtab_t;
 
+/*
+ * A compiler attribute for annotating all MIG server routines and other
+ * functions that should behave similarly.  Allows the compiler to perform
+ * additional static bug-finding over them.
+ */
+#if __has_attribute(mig_server_routine)
+#define MIG_SERVER_ROUTINE __attribute__((mig_server_routine))
+#else
+#define MIG_SERVER_ROUTINE
+#endif
+
 #ifdef  PRIVATE
 
 /* MIG object runtime - not ready for public consumption */