diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-02 22:33:44 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-02 22:33:44 +1300 |
| commit | 4c892d337bd43b78fd89dd606341856223ad93d7 (patch) | |
| tree | 0ad3dea2447bcca082173171d407ea3860e309a4 /src | |
| parent | ba9deab178f68f905cb63d50de2c64641362607d (diff) | |
| download | Paradox-4c892d337bd43b78fd89dd606341856223ad93d7.tar.xz Paradox-4c892d337bd43b78fd89dd606341856223ad93d7.zip | |
Debug functions/receivers behind debug_features option
Diffstat (limited to 'src')
| -rw-r--r-- | src/Object.m | 4 |
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 |
