Skip to content

Commit

Permalink
Merge a5d767b into d6b338e
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Apr 8, 2021
2 parents d6b338e + a5d767b commit 18c952d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Expand Up @@ -1004,7 +1004,7 @@ p |void |gv_setref |NN SV *const dsv|NN SV *const ssv
Apd |HV* |gv_stashpv |NN const char* name|I32 flags
Apd |HV* |gv_stashpvn |NN const char* name|U32 namelen|I32 flags
#if defined(PERL_IN_GV_C) || defined(PERL_IN_UNIVERSAL_C)
EpG |HV* |gv_stashsvpvn_cached |NULLOK SV *namesv|NULLOK const char* name|U32 namelen|I32 flags
Epd |HV* |gv_stashsvpvn_cached |NULLOK SV *namesv|NULLOK const char* name|U32 namelen|I32 flags
#endif
#if defined(PERL_IN_GV_C)
i |HV* |gv_stashpvn_internal |NN const char* name|U32 namelen|I32 flags
Expand Down
9 changes: 7 additions & 2 deletions gv.c
Expand Up @@ -1543,19 +1543,24 @@ S_gv_stashpvn_internal(pTHX_ const char *name, U32 namelen, I32 flags)
}

/*
gv_stashsvpvn_cached
=for apidoc gv_stashsvpvn_cached
Returns a pointer to the stash for a specified package, possibly
cached. Implements both C<L</gv_stashpvn>> and C<L</gv_stashsv>>.
Requires one of either C<namesv> or C<namepv> to be non-null.
See C<L</gv_stashpvn>> for details on C<flags>.
If the flag C<GV_CACHE_ONLY> is set, return the stash only if found in the
cache; see C<L</gv_stashpvn>> for details on the other C<flags>.
Note the sv interface is strongly preferred for performance reasons.
=for apidoc Emnh||GV_CACHE_ONLY
=cut
*/

#undef PERL_ARGS_ASSERT_GV_STASHSVPVN_CACHED
#define PERL_ARGS_ASSERT_GV_STASHSVPVN_CACHED \
assert(namesv || name)

Expand Down

0 comments on commit 18c952d

Please sign in to comment.