Re: newbie:: __FILE__
Re: newbie:: __FILE__
- Subject: Re: newbie:: __FILE__
- From: Justin Anderson <email@hidden>
- Date: Sun, 17 Sep 2006 09:17:21 -0400
According to a thread from Nov 2005 [1], __FILE__ returns paths
relative to where gcc was called from. In a followup to that post
there's a macro function to get relative path, but I haven't tried it.
#define THIS_FILE ((strrchr(__FILE__, '/') ?: __FILE__ - 1) + 1)
http://www.cocoabuilder.com/archive/message/xcode/2005/11/8/810
Justin Anderson
On Sep 17, 2006, at 8:51 AM, Perry Winkel wrote:
hi!
the macro __FILE__ in cw used to give me the name of the source
file (i.e. "px.cp")
in xcode (2.4 intel) it returns the full path (i.e. "/Users/za/px/
px.cp")
how do i switch this long file name stuff off and return to the old
fashioned short stuff?
--
met vriendelijke groeten
perry winkel
_______________________________________________
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