Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
13
TMessagesProj/jni/voip/libtgvoip/os/darwin/TGLogWrapper.m
Normal file
13
TMessagesProj/jni/voip/libtgvoip/os/darwin/TGLogWrapper.m
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue