From RTSC-Pedia
revision tip
LANDSCAPE orientation[printable version] [offline version] | offline version generated on 25-Jun-2010 20:06 UTC |
XDCspec - @TargetHeader
This metaonly module generates a header
| @TargetHeader("template") |
Interfaces and metaonly modules that want to generate a header file can use this attribute to specify a template. The output of evaluation of the template is then saved as that unit's header file.
The template is expanded as part of the "compilation" of module specifications. In addition, the following global variables are set:
- $args
- an array of length 1, where $args[0] is the "specification object" for the module with the TargetHeader attribute
The template file is located using the same search algorithm as xdc.findFile(). So, templates can be located in other packages and will be found along the package path.
[printable version] [offline version] | offline version generated on 25-Jun-2010 20:06 UTC |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved