Skip to content

Instantly share code, notes, and snippets.

View wooster's full-sized avatar

Andrew Wooster wooster

View GitHub Profile
@wooster
wooster / quicklog.m
Created July 13, 2019 00:14
Quick Objective-C Logging Function
// A logging function for Objective-C that doesn't output the extras NSLog() does.
void quicklog(NSString *string, ...) {
va_list args;
va_start(args, string);
NSString *contents = [[NSString alloc] initWithFormat:string arguments:args];
va_end(args);
printf("%s\n", [contents UTF8String]);
}