Skip to content

Commit

Permalink
Merge pull request CocoaLumberjack#1220 from levigroker/levi/ddassert…
Browse files Browse the repository at this point in the history
…ionfailure

Adding `DDAssertionFailure` macro
  • Loading branch information
ffried authored Apr 3, 2021
2 parents ef235bb + fa43165 commit 4c79188
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Deprecate `tag` property of `DDLogMessage`, use `representedObject` instead. (#1177, #532)
- Add per-message synchronous logging control for messages logged via SwiftLog using `DDLogHandler` (#1209)
- Prevent logging an error when archiving an already deleted file (#1212)
- Add `DDAssertionFailure` macro for Objective-C (#1220)

### Internal

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@
NSAssert(NO, @"%@", description); \
}
#define DDAssertCondition(condition) DDAssert(condition, @"Condition not satisfied: %s", #condition)

/**
* Analog to `DDAssertionFailure` from DDAssert.swift for use in Objective C
*/
#define DDAssertionFailure(frmt, ...) DDAssert(NO, frmt, ##__VA_ARGS__)

0 comments on commit 4c79188

Please sign in to comment.