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:
8
thirdparty/ios/ios.m
vendored
Normal file
8
thirdparty/ios/ios.m
vendored
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user