} else {
vec = newASSIGNOP(
OPf_STACKED,
- my_var(0, vc),
+ my_var(aTHX_ 0, vc),
OP_BIT_OR,
newSVOP(OP_CONST, 0, newSVuv((UV)1 << i))
);
} else {
vec = newASSIGNOP(
OPf_STACKED,
- my_var(0, vb),
+ my_var(aTHX_ 0, vb),
OP_BIT_OR,
newSVOP(OP_CONST, 0, newSVuv((UV)1 << i))
);
0,
vb_is_str
? mkvecbits(aTHX_ vb, i)
- : newBINOP(OP_BIT_AND, 0, my_var(0, vb), newSVOP(OP_CONST, 0, newSVuv((UV)1 << i)))
+ : newBINOP(OP_BIT_AND, 0, my_var(aTHX_ 0, vb), newSVOP(OP_CONST, 0, newSVuv((UV)1 << i)))
,
newNULLLIST(),
newSVOP(OP_CONST, 0, newSVpvn_utf8(p + 1, n - 1, SvUTF8(sv)))
OP_NOT, OPf_SPECIAL,
vc_is_str
? mkvecbits(aTHX_ vc, i)
- : newBINOP(OP_BIT_AND, 0, my_var(0, vc), newSVOP(OP_CONST, 0, newSVuv((UV)1 << i)))
+ : newBINOP(OP_BIT_AND, 0, my_var(aTHX_ 0, vc), newSVOP(OP_CONST, 0, newSVuv((UV)1 << i)))
);
init = newCONDOP(0, cond, init, NULL);
like exception { name_1_slurp }, qr/Not enough arguments/;
like exception { name_1_slurp 'n1' }, qr/Not enough arguments/;
like exception { name_1_slurp 'asdf' }, qr/Not enough arguments/;
-like exception { name_1_slurp huh => 1 }, qr/Missing named\b.+\bn1\b/;
+like exception { name_1_slurp huh => 1 }, qr/missing named\b.+\bn1\b/;
is_deeply name_1_slurp(n1 => 'a'), ['a', [], n1 => 'a'];
like exception { name_1_slurp n1 => 'a', 'n1' }, qr/Odd number/;
is_deeply name_1_slurp(n1 => 'a', foo => 'bar'), ['a', [foo => 'bar'], n1 => 'a', foo => 'bar'];
like exception { name_2 'asdf' }, qr/Not enough arguments/;
like exception { name_2 huh => 1 }, qr/Not enough arguments/;
like exception { name_2 n1 => 'a' }, qr/Not enough arguments/;
-like exception { name_2 n1 => 'a', n1 => 'b' }, qr/Missing named\b.+\bn2\b/;
+like exception { name_2 n1 => 'a', n1 => 'b' }, qr/missing named\b.+\bn2\b/;
like exception { name_2 n2 => 'a' }, qr/Not enough arguments/;
-like exception { name_2 n2 => 'a', n2 => 'b' }, qr/Missing named\b.+\bn1\b/;
+like exception { name_2 n2 => 'a', n2 => 'b' }, qr/missing named\b.+\bn1\b/;
like exception { name_2 n1 => 'a', 'n2' }, qr/Not enough arguments/;
like exception { name_2 n1 => 'a', 'asdf' }, qr/Not enough arguments/;
like exception { name_2 n2 => 'b', n1 => 'a', huh => 1 }, qr/\bnamed\b.+\bhuh\b/;
like exception { name_1_2 huh => 1 }, qr/\bnamed\b.+\bhuh\b/;
is_deeply name_1_2(n1 => 'a'), ['a', 'f', n1 => 'a'];
is_deeply name_1_2(n1 => 'a', n1 => 'b'), ['b', 'f', n1 => 'a', n1 => 'b'];
-like exception { name_1_2 n2 => 'a' }, qr/Missing named\b.+\bn1\b/;
-like exception { name_1_2 n2 => 'a', n2 => 'b' }, qr/Missing named\b.+\bn1\b/;
+like exception { name_1_2 n2 => 'a' }, qr/missing named\b.+\bn1\b/;
+like exception { name_1_2 n2 => 'a', n2 => 'b' }, qr/missing named\b.+\bn1\b/;
like exception { name_1_2 n1 => 'a', 'n2' }, qr/Odd number/;
like exception { name_1_2 n1 => 'a', 'asdf' }, qr/Odd number/;
like exception { name_1_2 n2 => 'b', n1 => 'a', huh => 1 }, qr/\bnamed\b.+\bhuh\b/;