Skip to content

Commit

Permalink
av.h - document new newAV_mortal macro
Browse files Browse the repository at this point in the history
  • Loading branch information
richardleach committed Feb 5, 2024
1 parent 2b83486 commit 0d564a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions av.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Note that there are both real and fake AVs; see the beginning of this file and
'av.c'
=for apidoc newAV
=for apidoc newAV_mortal
=for apidoc_item newAV_alloc_x
=for apidoc_item newAV_alloc_xz
Expand Down Expand Up @@ -169,6 +170,11 @@ or implicitly when the first element is stored:
Unused array elements are typically initialized by C<av_extend>.
=item C<newAV_mortal> form
This also creates the whole-array data structure, but also mortalises it.
(That is to say, a reference to the AV is added to the C<temps> stack.)
=item C<newAV_alloc_x> form
This effectively does a C<newAV> followed by also allocating (uninitialized)
Expand Down

0 comments on commit 0d564a3

Please sign in to comment.