projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Reduce SvGETMAGIC()
[gitmo/Mouse.git]
/
xs-src
/
MouseAttribute.xs
diff --git
a/xs-src/MouseAttribute.xs
b/xs-src/MouseAttribute.xs
index
8ea3a06
..
617a99a
100644
(file)
--- a/
xs-src/MouseAttribute.xs
+++ b/
xs-src/MouseAttribute.xs
@@
-280,10
+280,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){