parrotcode: Functions for manipulating vtables | |
Contents | Perl Modules |
Parrot::Vtable - Functions for manipulating vtables
use Parrot::Vtable;
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, and src/pmc/null.pl.
The following functions are exported:
parse_vtable($file)
[ return_type method_name parameters section MMD_type attributes ]
$file
. If $file
is unspecified it defaults to src/vtable.tbl. If it is not an MMD method, MMD_type
is -1.vtbl_defs($vtable)
typedef
definitions for the elements in the referenced vtable array.vtbl_struct($vtable)
struct
definitions for the elements in the referenced vtable array.vtbl_macros($vtable)
#define
definitions for the elements in the referenced vtable array.vtbl_embed($vtable)
%s %s(%s)
|