newMacroDefinition

fun newMacroDefinition(bundle: A_Bundle, definitionModule: A_Module, bodyBlock: A_Function, prefixFunctions: A_Tuple): A_Macro

Create a new macro signature from the provided argument.

Return

A macro definition.

Parameters

bundle

The A_Bundle that names the macro.

definitionModule

The module in which this macro is added.

bodyBlock

The body of the signature. This will be invoked when a call site is compiled, passing the subexpressions (phrases) as arguments.

prefixFunctions

The tuple of prefix functions that correspond with the section checkpoints ("§") in the macro's name.