1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: use NSLog on iOS for print (#9665)

This commit is contained in:
Leah Lundqvist
2021-04-10 16:40:43 +02:00
committed by GitHub
parent 64391efa4d
commit 38c517c1a2
5 changed files with 40 additions and 0 deletions

8
thirdparty/ios/ios.m vendored Normal file
View File

@@ -0,0 +1,8 @@
#import <Foundation/Foundation.h>
void WrappedNSLog(const char *message,...) {
va_list args;
va_start(args, message);
NSLog(@"%@",[[NSString alloc] initWithFormat:[NSString stringWithUTF8String:message] arguments:args]);
va_end(args);
}