X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xs-src%2FMouseAttribute.xs;h=6958375475dd1aa0e0432f52d23f58e425e62b82;hb=f3e4c7ebdc35a752e69f6031121b5cab1630b09a;hp=8ea3a060faa36d385ae6ef0ecaea6219c43ca504;hpb=077f2efda66008ab1a1fb959851a7c9062404588;p=gitmo%2FMouse.git diff --git a/xs-src/MouseAttribute.xs b/xs-src/MouseAttribute.xs index 8ea3a06..6958375 100644 --- a/xs-src/MouseAttribute.xs +++ b/xs-src/MouseAttribute.xs @@ -249,6 +249,7 @@ BOOT: INSTALL_SIMPLE_READER_WITH_KEY(Attribute, should_auto_deref, auto_deref); INSTALL_SIMPLE_READER_WITH_KEY(Attribute, should_coerce, coerce); INSTALL_SIMPLE_READER(Attribute, documentation); + INSTALL_SIMPLE_READER(Attribute, insertion_order); /* predicates */ INSTALL_SIMPLE_PREDICATE_WITH_KEY(Attribute, has_accessor, accessor); @@ -280,10 +281,7 @@ CODE: /* taken from Class::MOP::Attribute::new */ - if(!SvOK(name)){ - mouse_throw_error(klass, NULL, - "You must provide a name for the attribute"); - } + must_defined(name, "an attribute name"); svp = hv_fetchs(args, "init_arg", FALSE); if(!svp){