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 tools/build/jit2c.pl, tools/build/pmc2c.pl, tools/build/vtable_h.pl, tools/dev/gen_class.pl.
Functions
The following functions are exported:
parse_vtable($file)
Returns a reference to an array containing
vtbl_defs($vtable)
Returns the C vtbl_struct($vtable)
Returns the C vtbl_macros($vtable)
Returns the C vtbl_embed($vtable)
Returns the C function definitions to call the vtable methods on a PMC for the elements in the referenced vtable array.
[ return_type method_name parameters section MMD_type attributes ]for each vtable method defined in
$file
. If $file
is unspecified it defaults to src/vtable.tbl. If it is not an MMD method, MMD_type
is -1.
typedef
definitions for the elements in the referenced vtable array.
struct
definitions for the elements in the referenced vtable array.
#define
definitions for the elements in the referenced vtable array.