diff options
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r-- | pod/perlguts.pod | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod index c6ba0115e2..9b7cab627e 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -2123,6 +2123,13 @@ The XSUB-writer's interface to the C C<malloc> function, with cast. void* Newc( x, void *ptr, int size, type, cast ) +=item newCONSTSUB + +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) + =item newHV Creates a new HV. The reference count is set to 1. |