-#define PERL_NO_GET_CONTEXT
-#include "mop.h"
#include "moose.h"
/* Moose Meta Instance object */
#define MOOSE_mi_tc(m) MOP_mi_access(m, MOOSE_MI_TC)
#define MOOSE_mi_tc_code(m) MOP_mi_access(m, MOOSE_MI_TC_CODE)
-#define MOOSE_mg_accessor(mg) MOOSE_mi_accessor(MOP_mg_mi(mg))
+#define MOOSE_mg_accessor(mg) MOOSE_mi_accessor(MOP_mg_miav(mg))
enum moose_mi_flags_t{
MOOSE_MIf_ATTR_HAS_TC = 0x0001,
CV* const xsub = mop_install_accessor(aTHX_ NULL /* anonymous */, kpv, klen, accessor_impl, instance_vtbl);
dMOP_mg(xsub);
- AV* const mi = MOP_mg_mi(mg);
+ AV* const mi = MOP_mg_miav(mg);
U16 flags = 0;
assert(instance_vtbl);
static void
moose_attr_get(pTHX_ SV* const self, MAGIC* const mg){
- AV* const mi = MOP_mg_mi(mg);
+ AV* const mi = MOP_mg_miav(mg);
U16 const flags = MOP_mg_flags(mg);
/* check_lazy */
static void
moose_attr_set(pTHX_ SV* const self, MAGIC* const mg, SV* value){
- AV* const mi = MOP_mg_mi(mg);
+ AV* const mi = MOP_mg_miav(mg);
U16 const flags = MOP_mg_flags(mg);
SV* old_value = NULL;