• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Leave NSLog()s in Final Product? - solution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Leave NSLog()s in Final Product? - solution
      • From: Bob Frank <email@hidden>
References: 
 >Re: Leave NSLog()s in Final Product? - solution (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Why can I make a new document this way?!
  • Next by Date: windowControllerDidLoadNib not called
  • Previous by thread: Re: Leave NSLog()s in Final Product? - solution
  • Next by thread: Re: Leave NSLog()s in Final Product? - solution
  • Index(es):
    • Date
    • Thread