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
|
|
|
|
2018-04-15 20:46:08 -05:00
|
|
|
void uiprivRealBug(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();
|
|
|
|
}
|