• 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
Templates (Specifically: Include Guards)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Templates (Specifically: Include Guards)


  • Subject: Templates (Specifically: Include Guards)
  • From: Neil <email@hidden>
  • Date: Tue, 18 Nov 2008 20:12:14 -0500

(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 */
_______________________________________________
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: Templates (Specifically: Include Guards)
      • From: Grant Limberg <email@hidden>
  • Prev by Date: Build broken after I moved my project
  • Next by Date: Re: Templates (Specifically: Include Guards)
  • Previous by thread: Re: Build broken after I moved my project
  • Next by thread: Re: Templates (Specifically: Include Guards)
  • Index(es):
    • Date
    • Thread