These are the only Hv* macros in sv.h, so I may be putting them in the
wrong place. However, they are very closely related to those that
immediately precede them.
&& (SvFLAGS(SvSTASH(SvRV(sv))) &= ~SVf_AMAGIC))
#endif
+/* To be used on the stashes themselves: */
+#define HvAMAGIC(hv) (SvFLAGS(hv) & SVf_AMAGIC)
+#define HvAMAGIC_on(hv) (SvFLAGS(hv) |= SVf_AMAGIC)
+#define HvAMAGIC_off(hv) (SvFLAGS(hv) &=~ SVf_AMAGIC)
+
/*
=for apidoc Am|U32|SvGAMAGIC|SV* sv