This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Loops in GCC preprocessor needed
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Nulik Nol <nuliknol at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 26 Jan 2016 18:46:01 +0000
- Subject: Re: Loops in GCC preprocessor needed
- Authentication-results: sourceware.org; auth=none
- References: <CAHO6xe-NEQUojQm8Lsjpc3ic88p7BJZCWJph1Px1vMfKX1ib5A at mail dot gmail dot com>
The behaviour of the C preprocessor is defined by the ISO C standard,
not by GCC. It is not likely that GCC would add non-standard
extensions to add such features to the preprocessor.
You could look at
http://www.boost.org/doc/libs/1_60_0/libs/preprocessor/doc/ to see
what can be done using the standardpreprocessor, or you could look
into other ways to generate the code before you compile it.