Difference between revisions of "Event class Compile"
From Flowcode Help
Jump to navigationJump to search (XML Import to change Variable types into Variable Types) |
(XML import) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | <sidebar>Event Contents</sidebar> | ||
The Compile event class is called at various stages during compilation of the downloadable code, and allows a component to customise their C code as raw text. It covers everything from the size of a variables array to the contents of interrupt handlers. | The Compile event class is called at various stages during compilation of the downloadable code, and allows a component to customise their C code as raw text. It covers everything from the size of a variables array to the contents of interrupt handlers. | ||
| Line 7: | Line 8: | ||
==Events provided for this class== | ==Events provided for this class== | ||
{| | {| | ||
| + | |- | ||
| + | |width="35%"|[[Event Compile.Preprocess|Preprocess]] | ||
| + | |Broadcast to all components immediately before compilation is started | ||
|- | |- | ||
|width="35%"|[[Event Compile.AddProperty|AddProperty]] | |width="35%"|[[Event Compile.AddProperty|AddProperty]] | ||
Latest revision as of 15:59, 16 January 2014
<sidebar>Event Contents</sidebar> The Compile event class is called at various stages during compilation of the downloadable code, and allows a component to customise their C code as raw text. It covers everything from the size of a variables array to the contents of interrupt handlers.
See the individual events for details of how to use this event class
Events provided for this class
| Preprocess | Broadcast to all components immediately before compilation is started |
| AddProperty | Sent to a component to allow dynamic amendment of global property declarations |
| AddConst | Sent to a component to allow dynamic amendment of global variable declarations |
| AddVarSize | Sent to a component to allow dynamic amendment of global array-size declarations |
| AddVar | Sent to a component to allow dynamic amendment of global constant declarations |
| AddHeader | Sent to a component to allow dynamic amendment of header code |
| AddInterrupts | Sent to a component to allow dynamic amendment of the interrupts for a component |
| AddInterrupt | Sent to a component to allow dynamic amendment of a single interrupts code |
| Start | Broadcast to all components that compilation is starting |
| Stop | Broadcast to all components that compilation has stopped |
| GetVarSize | Sent to a component to amend the size of the expected array |
See also
- API Expand class