• 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
__FILE__ Without Full Path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

__FILE__ Without Full Path?


  • Subject: __FILE__ Without Full Path?
  • From: Nick Nallick <email@hidden>
  • Date: Thu, 29 Dec 2005 15:33:50 -0700

While I'm making a nuisance of myself, here's one for you kind people...

I'm using the __FILE__ and __LINE__ constructs to log the origins of runtime errors in my app. GCC is sending me the entire path to the file, but I prefer just the file name (as CW provides). I'd rather not embed the full path into released code if I don't have to, plus there are a lot of these in my code and since the executable size is up 50% over CW I'm looking for ways to trim it down.

Is there some option I can give GCC or an alternate construct to omit the path from the file name?

Thanks,
Nick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: __FILE__ Without Full Path?
      • From: Shaun Wexler <email@hidden>
    • Re: __FILE__ Without Full Path?
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Re: Finding Files Buried in Groups
  • Next by Date: Re: Finding Files Buried in Groups
  • Previous by thread: Bundle/Framework problem
  • Next by thread: Re: __FILE__ Without Full Path?
  • Index(es):
    • Date
    • Thread