Skip to content

Commit

Permalink
Document CvDEPTH
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 1, 2022
1 parent fc995cf commit c8b3b0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion embed.fnc
Expand Up @@ -740,7 +740,7 @@ p |void |cv_undef_flags |NN CV* cv|U32 flags
pd |void |cv_forget_slab |NULLOK CV *cv
Cp |void |cx_dump |NN PERL_CONTEXT* cx
AiMpd |GV * |CvGV |NN CV *sv
AiMTp |I32 * |CvDEPTH |NN const CV * const sv
AdiMTp |I32 * |CvDEPTH |NN const CV * const sv
Aphd |SV* |filter_add |NULLOK filter_t funcp|NULLOK SV* datasv
Ap |void |filter_del |NN filter_t funcp
ApRhd |I32 |filter_read |int idx|NN SV *buf_sv|int maxlen
Expand Down
7 changes: 7 additions & 0 deletions inline.h
Expand Up @@ -159,6 +159,13 @@ Perl_CvGV(pTHX_ CV *sv)
: ((XPVCV*)MUTABLE_PTR(SvANY(sv)))->xcv_gv_u.xcv_gv;
}

/*
=for apidoc CvDEPTH
Returns the recursion level of the CV C<sv>. Hence >= 2 indicates we are in a
recursive call.
=cut
*/
PERL_STATIC_INLINE I32 *
Perl_CvDEPTH(const CV * const sv)
{
Expand Down

0 comments on commit c8b3b0e

Please sign in to comment.