* $attr->associated_class->get_meta_instance */
STATIC SV *attr_to_meta_instance(pTHX_ SV *meta_attr) {
dSP;
- I32 count;
SV *mi;
if ( !meta_attr )
XPUSHs(meta_attr);
PUTBACK;
- count = call_pv("Moose::XS::attr_to_meta_instance", G_SCALAR);
-
- if ( count != 1 )
- croak("attr_to_meta_instance borked (%d args returned, expecting 1)", (int)count);
+ call_pv("Moose::XS::attr_to_meta_instance", G_SCALAR);
SPAGAIN;
mi = POPs;
* $obj->$coderef etc, for that we need to use 'default' */
PUTBACK;
call_method(SvPV_nolen(attr->def.sv), G_SCALAR);
- SPAGAIN;
/* the value is a mortal with a refcount of 1, so we need to keep it around */
+ SPAGAIN;
sv = POPs;
SvREFCNT_inc_simple_void(sv);