Re: macro expansion to achieve induction.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux