Overview
Comment: | Use OFLog() for OFEnsure() |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
18caed047ed9caf9f4b8373a68b5de1d |
User & Date: | js 2022-11-15 23:04:52 |
Context
2022-11-16
| ||
01:27 | Add OFAssert() check-in: c86b8f10f0 user: js tags: trunk | |
2022-11-15
| ||
23:09 | Merge trunk into branch "amiga-library" check-in: a151c9797b user: js tags: amiga-library | |
23:04 | Use OFLog() for OFEnsure() check-in: 18caed047e user: js tags: trunk | |
20:17 | Restore GitHub Actions for Nintendo (3)DS check-in: da3f193b81 user: js tags: trunk | |
Changes
Changes to src/OFCondition.m.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | + | #include "config.h" #include <errno.h> #import "OFCondition.h" #import "OFDate.h" #import "OFString.h" #import "OFBroadcastConditionFailedException.h" #import "OFConditionStillWaitingException.h" #import "OFInitializationFailedException.h" #import "OFSignalConditionFailedException.h" #import "OFWaitForConditionFailedException.h" |
Changes to src/macros.h.
355 356 357 358 359 360 361 362 363 364 | 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 | + + - - + + - | do { \ if OF_UNLIKELY (!(cond)) \ objc_error("ObjFWRT @ " __FILE__ ":" \ OF_STRINGIFY(__LINE__), \ "Failed to ensure condition:\n" #cond); \ } while(0) #else @class OFConstantString; extern void OFLog(OFConstantString *_Nonnull, ...); # define OFEnsure(cond) \ do { \ if OF_UNLIKELY (!(cond)) { \ |
Changes to src/platform/AmigaOS/OFPlainThread.m.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | + | #include "config.h" #include <assert.h> #include <errno.h> #import "OFPlainThread.h" #import "OFData.h" #import "OFString.h" #import "OFTLSKey.h" #include <dos/dostags.h> #include <proto/dos.h> #include <proto/exec.h> #ifndef OF_MORPHOS |