Differences From Artifact [afe0ab07e4]:
- File src/OFObject.m — part of check-in [ef470b8aa3] at 2022-11-13 11:32:16 on branch trunk — Use OFLog() instead of fprintf(stderr, ...) (user: js, size: 28714) [annotate] [blame] [check-ins using] [more...]
To Artifact [eefa1e2165]:
- File
src/OFObject.m
— part of check-in
[c86b8f10f0]
at
2022-11-16 01:27:26
on branch trunk
— Add OFAssert()
This uses the same format as OFEnsure(). (user: js, size: 28695) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
16 17 18 19 20 21 22 | #include "config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "unistd_wrapper.h" | < < | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include "config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "unistd_wrapper.h" #ifdef OF_APPLE_RUNTIME # include <dlfcn.h> #endif #ifdef HAVE_GETRANDOM # include <sys/random.h> #endif |
︙ | ︙ | |||
1166 1167 1168 1169 1170 1171 1172 | #endif return self; } - (unsigned int)retainCount { | | | 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 | #endif return self; } - (unsigned int)retainCount { OFAssert(PRE_IVARS->retainCount >= 0); return PRE_IVARS->retainCount; } - (void)release { #if defined(OF_HAVE_ATOMIC_OPS) OFReleaseMemoryBarrier(); |
︙ | ︙ |