mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/libtgvoip git-subtree-mainline: d153fe0f21174c4d6e1c3602e852e7a0e53051f0 git-subtree-split: dcbbfd9ec40ee8702852a768d75362142becc727
14 lines
389 B
Objective-C
14 lines
389 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
void (*TGVoipLoggingFunction)(NSString *) = NULL;
|
|
|
|
void __tgvoip_call_tglog(const char* format, ...){
|
|
va_list args;
|
|
va_start(args, format);
|
|
NSString *string = [[NSString alloc] initWithFormat:[[NSString alloc]initWithUTF8String:format] arguments:args];
|
|
va_end(args);
|
|
if (TGVoipLoggingFunction) {
|
|
TGVoipLoggingFunction(string);
|
|
}
|
|
}
|