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 - @Macro

This function is a macro

This attribute is applicable only to functions. If a function is declared in a spec file with "@Macro" preceding the function declaration, the generated header file will not contain a declaration for that function. The package producer must create Mod__prologue.h and Mod__epilogue.h custom header files, and define the function as a macro or a static inline function.

The package producer must use fully qualified function and parameter names in custom header files. For example, the declaration of a function in Mod.xdc in package pkgA

 
@Macro Int max(Int a, Int b);

must be accompanied with the definition that uses fully qualified names of the function

 
#define pkgA_Mod_max(a, b) ((a) > (b) ? (a) : (b))
[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