mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
16 lines
643 B
Objective-C
16 lines
643 B
Objective-C
//
|
|
// DDAssert.h
|
|
// CocoaLumberjack
|
|
//
|
|
// Created by Ernesto Rivera on 2014/07/07.
|
|
//
|
|
//
|
|
|
|
#import "DDLog.h"
|
|
|
|
#define DDAssert(condition, frmt, ...) if (!(condition)) { \
|
|
NSString * description = [NSString stringWithFormat:frmt, ##__VA_ARGS__]; \
|
|
DDLogError(@"%@", description); \
|
|
NSAssert(NO, description); }
|
|
#define DDAssertCondition(condition) DDAssert(condition, @"Condition not satisfied: %s", #condition)
|
|
|