MacroNode.initialize

Initializes a macro node, must be later disposed.

This procedure sets up unique indexes for each in-edge slot. All slot kinds default to data; this can be changed later.

struct MacroNode
@nogc nothrow static
initialize
(,
uint id
,
uint ins
,
uint outs
)

Parameters

self MacroNode*

Address of node being initialized.

id uint

Macro node identification number.

ins uint

Number of (preallocated) in-edges in this node.

outs uint

Number of (preallocated) out-edges in this node.

Return Value

Type: err_t

Zero on success, non-zero on failure (OOM).