Book a Demo

Author Topic: Code generate language macros?  (Read 2207 times)

bnils

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Code generate language macros?
« on: October 01, 2010, 07:16:22 pm »
How do I generate the following C-code from EA:

interrupt void timer0_isr(void)

The "interrrupt" keyword is one macro among others.
Is there a tag for this? The code template Operation Declaration reveals somethnig about a %opMacro% but this is inserted after the return type.

Some macros may appear even before the static and const keyword.

%opMacros% is according to the online help explained as "A space-separated list of macros defined in the declaration for this operation." but where do I find this?

So how do I generate language macros such as "interrupt" or "__irq" ?

Best regards,
Björn Nilsson