From fb094047d23498c516e24d2b3b3d8fbe138b39c6 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Thu, 28 Aug 2014 16:03:22 -0700 Subject: [PATCH] pad.c: Document cv_name --- pad.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pad.c b/pad.c index 04dff00..285c204 100644 --- a/pad.c +++ b/pad.c @@ -2228,6 +2228,21 @@ Perl_cv_clone_into(pTHX_ CV *proto, CV *target) return S_cv_clone(aTHX_ proto, target, NULL); } +/* +=for apidoc cv_name + +Returns an SV containing the name of the CV, mainly for use in error +reporting. The CV may actually be a GV instead, in which case the returned +SV holds the GV's name. Anything other than a GV or CV will be treated as +a string already holding the sub name. + +An SV may be passed as a second argument. If so, the name will be assigned +to it and it will be returned. Otherwise the returned SV will be a new +mortal. + +=cut +*/ + SV * Perl_cv_name(pTHX_ CV *cv, SV *sv) { -- 1.8.3.1