From RTSC-Pedia
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
XDCscript - Module-Body.module$use
Use other modules required by this module
Synopsis
| function module$use() |
Description
module$use() is called after the user's configuration script and changes to the configuration are allowed within this function. This function is used by modules that require other modules in their implementation. As a rule, any module that directly references another RTSC module must implement this function with the necessary calls to xdc.useModule().
You should leverage this function as the locale for binding all unbound proxies associated with this module. Any proxies left unbound going forward will cause the entire configuration process to terminate with an appropriate error message, thus inhibiting any subsequent target-program build steps.
The configuration model invokes module$use before both module$static$init and instance$static$init. For more information about the order in which module functions are invoked, see Creating Configurable Content.
See also
XDCscript - xdc.useModule | Specify that a module is used in a configuration |
Creating Configurable Content | How to leverage the configuration process |
XDCscript - Module-Body.module$static$init | Initialize module's State object |
XDCscript - Instance-Body.instance$static$init | Statically initialize a target module's instance object |
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |