From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 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 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved


Views
Personal tools
package reference