aboutsummaryrefslogtreecommitdiff
path: root/src/Object.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/Object.m')
-rw-r--r--src/Object.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Object.m b/src/Object.m
index f9a0184..de0f343 100644
--- a/src/Object.m
+++ b/src/Object.m
@@ -10,6 +10,7 @@
return class_createInstance(self, 0);
}
+#ifdef PARADOX_DEBUG_FEATURES
+ (instancetype)allocDebug {
printf("alloc: self = %p\n", (void*)self);
printf("alloc: instance size = %zu\n", class_getInstanceSize(self));
@@ -21,6 +22,7 @@
return object;
}
+#endif
+ (instancetype) new {
return [[self alloc] init];
@@ -46,8 +48,10 @@
object_dispose(self);
}
+#ifdef PARADOX_DEBUG_FEATURES
- (void)healthCheck {
printf("PXObject health check: %p\n", (void*)self);
}
+#endif
@end