1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-12-04 02:27:46 +01:00
libtgvoip/os/darwin/TGLogWrapper.m
2018-01-24 17:56:42 +03:00

13 lines
386 B
Objective-C

#import <Foundation/Foundation.h>
void (*TGVoipLoggingFunction)(NSString *) = NULL;
void __tgvoip_call_tglog(const char* format, ...){
if (TGVoipLoggingFunction != nil) {
va_list args;
va_start(args, format);
TGVoipLoggingFunction([[NSString alloc]initWithFormat:[[NSString alloc] initWithUTF8String:format] arguments:args]);
va_end(args);
}
}