• Home
  • Raw
  • Download

Lines Matching full:macro

1 Call / Macro Statements
7macro](#macro) within the current namespace. There may be zero or more parameters passed to the ma…
9 …e [macro](#macro), these can be named or anonymous but must conform to the parameter types defined…
11 Macro rules are resolved by searching in the following order:
13 - The macro namespace (If found this means that the name was declared in the macro and is now dec…
17 - The parent namespaces of the macro being called (if any) with the exception of the global names…
43 <td align="left"><p>The identifier of the <code>macro</code> to be instantiated.</p></td>
47 <td align="left"><p>Zero or more parameters that are passed to the macro.</p></td>
54 See the [`macro`](cil_call_macro_statements.md#macro) statement for an example.
56 macro section in Call / Macro Statements
59macro in the current namespace with its associated parameters. The macro identifier is used by the…
61 …ct), and other [`macro`](cil_call_macro_statements.md#macro) statements are not allowed in [`macro
63macro`](cil_call_macro_statements.md#macro) declarations in the same namespace will normally cause…
68 (macro macro_id ([(param_type param_id) ...])
83 <td align="left"><p><code>macro</code></p></td>
84 <td align="left"><p>The <code>macro</code> keyword.</p></td>
88 <td align="left"><p>The <code>macro</code> identifier.</p></td>
92 <td align="left"><p>Zero or more parameters that are passed to the macro. The <code>param_type</cod…
97 <td align="left"><p>The parameter identifier used to reference the entry within the macro body (e.g…
108 This example will instantiate the `binder_call` macro in the calling namespace (`my_domain`) and re…
115 (macro binder_call ((type ARG1) (type ARG2))
122 This example does not pass any parameters to the macro but adds a [`type`](cil_type_statements.md#t…
129 (macro add_type ()
135 This example passes an anonymous and named IP address to the macro:
143 (macro build_nodecon ((ipaddr ARG1) (ipaddr ARG2))