Skip to content

Commit

Permalink
Add 'all_subs' method to EvalPMC.
Browse files Browse the repository at this point in the history
This provides API compatibility with the upcoming PackFilePMC changes
and gives NQP something to target for conversion.
  • Loading branch information
pmichaud committed Oct 8, 2013
1 parent d1c24ab commit de3ac86
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pmc/eval.pmc
Expand Up @@ -366,6 +366,22 @@ Return the main sub, if any, null PMC otherwise.
RETURN(PMC * mainsub);
}

/*

=item C<all_subs()>

Return an object providing indexed access to all subs in the compilation
unit (i.e., self). Provides compability with new packfile_pmc API.

=cut

*/

METHOD all_subs()
{
return(SELF);
}

}

/*
Expand Down

0 comments on commit de3ac86

Please sign in to comment.