aboutsummaryrefslogtreecommitdiff
path: root/src/Object.m
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-10-03 22:56:12 +1300
committerArslaan Pathan <[email protected]>2026-10-03 22:56:12 +1300
commit491a0ae5b62ce235253b9837d04075160f60fede (patch)
tree90b790ec7505acc2755c514a6b2f493cd8a9fe63 /src/Object.m
parentf1a8501ff7343ec253ce96e06b621ed8fedf08cd (diff)
downloadParadox-491a0ae5b62ce235253b9837d04075160f60fede.tar.xz
Paradox-491a0ae5b62ce235253b9837d04075160f60fede.zip
add more introspection stuff (and half-written Introspection test)
Diffstat (limited to 'src/Object.m')
-rw-r--r--src/Object.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Object.m b/src/Object.m
index 97b8997..2475be3 100644
--- a/src/Object.m
+++ b/src/Object.m
@@ -45,6 +45,18 @@
return class_getSuperclass([self class]);
}
++ (Class)class {
+ return self;
+}
+
++ (Class)superclass {
+ return class_getSuperclass(self);
+}
+
++ (const char *)className {
+ return class_getName(self);
+}
+
- (const char *)className {
return class_getName([self class]);
}