This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: macro expansion to achieve induction.


Jim Cromie wrote:

SO: ie Qs

Is there any way to:
a.  induce gcc/cpp to evaluate the macro as a macro,
   perhaps a builtin _enable_recursive_eval_ modifier thigny
no

b. include conditionals in the macro def
this conditional-def could serve as the hint to induce re-eval as a macro.
no

c. its not clear how do this safely
the condition may not properly terminate the expansion. (want a limiter, settable ideally)
d. an explicit 1..N loop sounds safer.

Use a script to generate the initializer and then #include the script's output.


nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]