NAME ^

Parrot::Vtable - Functions for manipulating vtables

SYNOPSIS ^

    use Parrot::Vtable;

DESCRIPTION ^

Parrot::Vtable provides a collection of functions for manipulating PMC vtables. It is used by build_tools/jit2h.pl, build_tools/vtable_h.pl, classes/genclass.pl, classes/null.pl and classes/pmc2c2.pl.

Functions ^

The following functions are exported:

parse_vtable($file)

Returns a reference to an array containing

  [ return_type method_name parameters section ]
for each vtable method defined in $file. If $file is unspecified it defaults to vtable.tbl.

vtbl_defs($vtable)

Returns the C typedef definitions for the elements in the referenced vtable array.

vtbl_struct($vtable)

Returns the C struct definitions for the elements in the referenced vtable array.

vtbl_macros($vtable)

Returns the C #define definitions for the elements in the referenced vtable array.

SEE ALSO ^

build_tools/jit2h.pl

build_tools/vtable_h.pl

classes/genclass.pl

classes/null.pl

classes/pmc2c2.pl

1;


parrot