Re: Leave NSLog()s in Final Product? - solution
Re: Leave NSLog()s in Final Product? - solution
- Subject: Re: Leave NSLog()s in Final Product? - solution
- From: Jerry Krinock <email@hidden>
- Date: Wed, 17 Mar 2004 05:59:41 -0800
Thanks to Alastair being 10 hours ahead of most of us, I post corrected
functions, including the required call to va_end:
void RLLog(int priority, const char * formatString, ...)
{
if (priority <= gLogging)
{
std::va_list argPtr ;
va_start( argPtr, formatString ) ;
NSLogv([NSString stringWithCString:formatString], argPtr) ;
va_end(argPtr) ;
}
}
void RLLog(int priority, NSString* formatString, ...)
{
if (priority <= gLogging)
{
std::va_list argPtr ;
va_start( argPtr, formatString ) ;
NSLogv(formatString, argPtr) ;
va_end(argPtr) ;
}
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.