Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add an nqp::scgetdesc op.
  • Loading branch information
jnthn committed Apr 14, 2013
1 parent 604ef1d commit 41237e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vm/parrot/QAST/Operations.nqp
Expand Up @@ -2140,6 +2140,12 @@ QAST::Operations.add_core_op('scgethandle', -> $qastcomp, $op {
$op[0]
))
});
QAST::Operations.add_core_op('scgetdesc', -> $qastcomp, $op {
$qastcomp.as_post(QAST::Op.new(
:op('callmethod'), :name('description'), :returns(str),
$op[0]
))
});
QAST::Operations.add_core_op('scgetobjidx', -> $qastcomp, $op {
$qastcomp.as_post(QAST::Op.new(
:op('callmethod'), :name('slot_index_for'), :returns(int),
Expand Down

0 comments on commit 41237e1

Please sign in to comment.