]> git.saurik.com Git - apple/system_cmds.git/blobdiff - KDBG/MetaTypes.hpp
system_cmds-643.30.1.tar.gz
[apple/system_cmds.git] / KDBG / MetaTypes.hpp
diff --git a/KDBG/MetaTypes.hpp b/KDBG/MetaTypes.hpp
new file mode 100644 (file)
index 0000000..98b0324
--- /dev/null
@@ -0,0 +1,25 @@
+//
+//  MetaTypes.hpp
+//  KDBG
+//
+//  Created by James McIlree on 10/24/12.
+//  Copyright (c) 2014 Apple. All rights reserved.
+//
+
+class Kernel32
+{
+    public:
+       typedef uint32_t        ptr_t;
+
+       enum { PTRMAX = UINT32_MAX };
+       enum { is_64_bit = 0 };
+};
+
+class Kernel64
+{
+    public:
+       typedef uint64_t        ptr_t;
+       
+       enum { PTRMAX = UINT64_MAX };
+       enum { is_64_bit = 1 };
+};