diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-12-26 17:14:44 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-12-27 21:12:12 +0000 |
commit | 123892d916359369839f3896f283189be71dc32c (patch) | |
tree | 189e4891a00ab4e74c3fe294b3ce2bd26b47d0ef /hv.h | |
parent | fa60396f123333e92849ecaecffb9252458d6678 (diff) | |
download | perl-123892d916359369839f3896f283189be71dc32c.tar.gz |
Add MRO_GET_PRIVATE_DATA() to use the cached mro private data where possible.
Diffstat (limited to 'hv.h')
-rw-r--r-- | hv.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -57,6 +57,11 @@ struct mro_meta { HV *isa; /* Everything this class @ISA */ }; +#define MRO_GET_PRIVATE_DATA(smeta, which) \ + (((smeta)->mro_which && (which) == (smeta)->mro_which) \ + ? MUTABLE_SV((smeta)->mro_linear_c3) \ + : Perl_mro_get_private_data(aTHX_ (smeta), (which))) + /* Subject to change. Don't access this directly. */ |