Skip to content

Commit

Permalink
Also document the xop_dump member in perlguts.pod
Browse files Browse the repository at this point in the history
  • Loading branch information
leonerd committed Sep 6, 2024
1 parent ff56d6d commit bef1b45
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pod/perlguts.pod
Original file line number Diff line number Diff line change
Expand Up @@ -3848,6 +3848,17 @@ will be called from C<Perl_rpeep> when ops of this type are encountered
by the peephole optimizer. I<o> is the OP that needs optimizing;
I<oldop> is the previous OP optimized, whose C<op_next> points to I<o>.

=item xop_dump

This member is a pointer to a function of type
C<void (pTHX_ OP *, struct OpDumpContext *)>. If set, this function is called
by C<op_dump()> when dumping a custom operator of this type, after the op's
basic fields have been printed. This function may make use of
C<opdump_printf()> to emit additional output that may be useful for debugging.

The opaque structure pointer passed in as its final argument should be passed
directly into C<opdump_printf()>.

=for apidoc_section $optree_manipulation
=for apidoc Ayh||Perl_cpeep_t

Expand Down

0 comments on commit bef1b45

Please sign in to comment.