mirror of
https://github.com/chesskit-app/chesskit-engine.git
synced 2026-05-19 15:50:35 +00:00
24 lines
496 B
Objective-C
24 lines
496 B
Objective-C
//
|
|
// Logging.m
|
|
// ChessKitEngine
|
|
//
|
|
|
|
#import "Logging.h"
|
|
|
|
@implementation Logging
|
|
|
|
// define DLog as NSLog replacement without timestamp
|
|
// see https://stackoverflow.com/a/17311835/7264964
|
|
|
|
#if __has_feature(objc_arc)
|
|
#define DLog(format, ...) CFShow((__bridge CFStringRef)[NSString stringWithFormat:format, ## __VA_ARGS__]);
|
|
#else
|
|
#define DLog(format, ...) CFShow([NSString stringWithFormat:format, ## __VA_ARGS__]);
|
|
#endif
|
|
|
|
+ (void)print:(NSString *)message {
|
|
DLog(@"%@", message)
|
|
}
|
|
|
|
@end
|