c3bb0702d4
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3926 127b21dd-08f5-0310-b4b7-95ae10353056
24 lines
534 B
Objective-C
24 lines
534 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
|
|
void OOLogWithPrefix(NSString *messageClass, const char *function, const char *file, unsigned long line, NSString *prefix, NSString *format, ...)
|
|
{
|
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
|
|
|
va_list args;
|
|
va_start(args, format);
|
|
NSString *message = [[NSString alloc] initWithFormat:format arguments:args];
|
|
va_end(args);
|
|
|
|
printf("%s\n", [message UTF8String]);
|
|
|
|
[message release];
|
|
[pool drain];
|
|
}
|
|
|
|
|
|
NSString *OOLogAbbreviatedFileName(const char *inName)
|
|
{
|
|
return @"";
|
|
}
|