summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJohn Tobey <jtobey@john-edwin-tobey.org>2000-10-20 18:03:27 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-21 14:26:45 +0000
commitbeab0874143b7208922720fecefc4a224011fa25 (patch)
tree3abffe8c491d477f0bb7cd037866ba7485ef9ee5 /pod
parent3a67c0c7529c0500df7fe90b2c6269508a51be07 (diff)
downloadperl-beab0874143b7208922720fecefc4a224011fa25.tar.gz
Re: Creating const subs for constants.
Message-Id: <m13mo0N-000FObC@feynman.localnet> p4raw-id: //depot/perl@7389
Diffstat (limited to 'pod')
-rw-r--r--pod/perlapi.pod15
1 files changed, 14 insertions, 1 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod
index 98abdc1d07..a5178e8d61 100644
--- a/pod/perlapi.pod
+++ b/pod/perlapi.pod
@@ -287,6 +287,19 @@ Returns the stash of the CV.
=for hackers
Found in file cv.h
+=item cv_const_sv
+
+If C<cv> is a constant sub eligible for inlining. returns the constant
+value returned by the sub. Otherwise, returns NULL.
+
+Constant subs can be created with C<newCONSTSUB> or as described in
+L<perlsub/"Constant Functions">.
+
+ SV* cv_const_sv(CV* cv)
+
+=for hackers
+Found in file op.c
+
=item dMARK
Declare a stack marker variable, C<mark>, for the XSUB. See C<MARK> and
@@ -1162,7 +1175,7 @@ Found in file handy.h
Creates a constant sub equivalent to Perl C<sub FOO () { 123 }> which is
eligible for inlining at compile-time.
- void newCONSTSUB(HV* stash, char* name, SV* sv)
+ CV* newCONSTSUB(HV* stash, char* name, SV* sv)
=for hackers
Found in file op.c