Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] multiple inclusion protection with eclasses
Date: Fri, 09 Dec 2011 17:03:33
Message-Id: 201112091202.37473.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] multiple inclusion protection with eclasses by "Michał Górny"
1 On Thursday 08 December 2011 23:40:12 Michał Górny wrote:
2 > On Thu, 8 Dec 2011 17:24:09 -0500 Mike Frysinger wrote:
3 > > simply put, it's the same thing as doing standard #ifdef logic in
4 > > headers to protect against multiple inclusion errors. on to the
5 > > example:
6 > >
7 > > +___ECLASS_ONCE_AUTOTOOLS="recur -_+^+_- spank"
8 >
9 > If you want alike CPP, why don't you name it:
10 > _AUTOTOOLS_ECLASS=1
11
12 that's not my preferred CPP naming style :p
13 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] multiple inclusion protection with eclasses Alec Warner <antarus@g.o>