Re: Templates (Specifically: Include Guards)
Re: Templates (Specifically: Include Guards)
- Subject: Re: Templates (Specifically: Include Guards)
- From: Grant Limberg <email@hidden>
- Date: Tue, 18 Nov 2008 17:50:16 -0800
On Nov 18, 2008, at 5:12 PM, Neil wrote:
(Tangentially related to the Org Name thread...)
Is there a user-level[1] location to place templates to override the
defaults?
My ultimate goal is to have Xcode make/place include guards[2] in my
header files, rather than making me do it manually. Obviously, if
there's a better way to do this than making templates, that's fine
by me...
Thanks,
Neil.
[1] I don't want to go hacking around in the /Developer tree,
ideally.
[2] Example:
/* header.h */
#ifndef HEADER_H_
#define HEADER_H_
/* code goes here */
#endif
---
/* code.c(pp) */
#include "header.h"
#include "header.h" /* without the ifndef's, this would cause an
error, with them, everything is peachy */
/* more code here */
Neil,
I did a good amount of digging on this a while back, and it seems the /
Developer tree is the only place to put file templates. I even posted
the same question in the past. On the bright side, in the upgrades of
Xcode since I first placed some new file templates in the /Developer
tree, none of them have been removed or replaced by the installer.
Grant Limberg
email@hidden
LinkedIn: http://www.linkedin.com/in/grantlimberg
http://www.glsoftware.net
_______________________________________________
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