Skip to content

Commit 34ea61a

Browse files
committed
mapped op getcfh
1 parent 753d879 commit 34ea61a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,9 @@ QAST::MASTOperations.add_core_moarop_mapping('sayfh', 'say_fhs');
17081708
QAST::MASTOperations.add_core_moarop_mapping('readlinefh', 'readline_fh');
17091709
QAST::MASTOperations.add_core_moarop_mapping('readlineintfh', 'readlineint_fh');
17101710
QAST::MASTOperations.add_core_moarop_mapping('readallfh', 'readall_fh');
1711+
QAST::MASTOperations.add_core_op('getcfh', -> $qastcomp, $op {
1712+
$qastcomp.as_mast( QAST::VM.new( :moarop('read_fhs'), $op[0], QAST::IVal.new( :value(1) )) )
1713+
});
17111714
QAST::MASTOperations.add_core_moarop_mapping('eoffh', 'eof_fh');
17121715
QAST::MASTOperations.add_core_moarop_mapping('closefh', 'close_fh', 0);
17131716

0 commit comments

Comments
 (0)