aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Object.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Object.m b/src/Object.m
new file mode 100644
index 0000000..d6fd2cb
--- /dev/null
+++ b/src/Object.m
@@ -0,0 +1,19 @@
+#include <Paradox/Object.h>
+#include <objc/objc.h>
+#include <objc/runtime.h>
+
+@implementation PXObject
+
++ (instancetype)alloc {
+ return (id)class_createInstance(self, 0);
+}
+
+- (instancetype)init {
+ return self;
+}
+
+- (void)dealloc {
+ object_dispose(self);
+}
+
+@end