Skip to content

Commit

Permalink
zap unnecessary SvGETMAGIC (thanks @sisyphus)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 authored and perlpunk committed May 4, 2019
1 parent cad7b4e commit fc7cc5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion doc/Inline/C/Cookbook.swim
Expand Up @@ -343,7 +343,6 @@ How do I pass a variable-sized list of arguments to an Inline C function?
SV *sum(SV *array) {
int total = 0;
int numelts, i;
SvGETMAGIC(array);
if ((!SvROK(array))
|| (SvTYPE(SvRV(array)) != SVt_PVAV)
|| ((numelts = av_len((AV *)SvRV(array))) < 0)
Expand Down
1 change: 0 additions & 1 deletion test/29refargs.t
Expand Up @@ -9,7 +9,6 @@ my $c_text = <<'EOC';
SV *sum(SV *array) {
int total = 0;
int numelts, i;
SvGETMAGIC(array);
if ((!SvROK(array))
|| (SvTYPE(SvRV(array)) != SVt_PVAV)
|| ((numelts = av_len((AV *)SvRV(array))) < 0)
Expand Down

0 comments on commit fc7cc5b

Please sign in to comment.