2016-05-13 19:14:46 -05:00
|
|
|
// 13 may 2016
|
|
|
|
#import "uipriv_darwin.h"
|
|
|
|
|
2016-05-22 18:17:42 -05:00
|
|
|
// LONGTERM don't halt on release builds
|
2016-05-13 19:14:46 -05:00
|
|
|
|
2016-05-13 19:20:15 -05:00
|
|
|
void realbug(const char *file, const char *line, const char *func, const char *prefix, const char *format, va_list ap)
|
2016-05-13 19:14:46 -05:00
|
|
|
{
|
|
|
|
NSMutableString *str;
|
|
|
|
NSString *formatted;
|
|
|
|
|
|
|
|
str = [NSMutableString new];
|
2016-05-13 20:00:12 -05:00
|
|
|
[str appendString:[NSString stringWithFormat:@"[libui] %s:%s:%s() %s", file, line, func, prefix]];
|
2016-05-13 19:14:46 -05:00
|
|
|
formatted = [[NSString alloc] initWithFormat:[NSString stringWithUTF8String:format] arguments:ap];
|
|
|
|
[str appendString:formatted];
|
|
|
|
[formatted release];
|
|
|
|
NSLog(@"%@", str);
|
|
|
|
[str release];
|
|
|
|
__builtin_trap();
|
|
|
|
}
|