We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406aae3 commit 728ac6eCopy full SHA for 728ac6e
t/lib/MakeMaker/Test/Setup/XS.pm
@@ -45,7 +45,7 @@ MODULE = XS::Test PACKAGE = XS::Test
45
PROTOTYPES: DISABLE
46
int
47
is_even(input)
48
- int input
+ int input
49
CODE:
50
RETVAL = (input % 2 == 0);
51
OUTPUT:
@@ -103,15 +103,14 @@ my $XS_OTHER = <<'END';
103
#include "EXTERN.h"
104
#include "perl.h"
105
#include "XSUB.h"
106
+
107
+int is_odd(int input) { return (INVAR % 2 == 1); }
108
109
MODULE = XS::Other PACKAGE = XS::Other
110
111
112
is_odd(input)
- CODE:
- RETVAL = (INVAR % 2 == 1);
113
- OUTPUT:
114
- RETVAL
115
END
116
117
my $T_OTHER = <<'END';
0 commit comments