diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-03 22:56:12 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-03 22:56:12 +1300 |
| commit | 491a0ae5b62ce235253b9837d04075160f60fede (patch) | |
| tree | 90b790ec7505acc2755c514a6b2f493cd8a9fe63 /src | |
| parent | f1a8501ff7343ec253ce96e06b621ed8fedf08cd (diff) | |
| download | Paradox-491a0ae5b62ce235253b9837d04075160f60fede.tar.xz Paradox-491a0ae5b62ce235253b9837d04075160f60fede.zip | |
add more introspection stuff (and half-written Introspection test)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Object.m | 12 |
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]); } |
