projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Simplify error check routines in XS
[gitmo/Mouse.git]
/
xs-src
/
MouseTypeConstraints.xs
diff --git
a/xs-src/MouseTypeConstraints.xs
b/xs-src/MouseTypeConstraints.xs
index
605c923
..
34ab1ea
100644
(file)
--- a/
xs-src/MouseTypeConstraints.xs
+++ b/
xs-src/MouseTypeConstraints.xs
@@
-530,10
+530,7
@@
mouse_generate_can_predicate_for(pTHX_ SV* const methods, const char* const pred
I32 len;
I32 i;
- SvGETMAGIC(methods);
- if(!IsArrayRef(methods)){
- croak("You must pass an ARRAY ref method names");
- }
+ must_ref(methods, "an ARRAY ref for method names", SVt_PVAV);
av = (AV*)SvRV(methods);
len = av_len(av) + 1;