2 # Grr can't let it end in OBJ 'cause xsubpp would
3 # s/OBJ$/REF/ that for the DESTROY function
15 if (SvROK($arg) && SvTYPE(SvRV($arg)) == SVt_PVAV)
16 $var = (AV *)SvRV($arg);
18 croak(\"$var is not a reference to an array\")
20 if (sv_isa($arg, \"VI\")) {
21 IV tmp = SvIV((SV*)SvRV($arg));
24 croak(\"screen no longer exists\");
27 croak(\"$var is not of type ${ntype}\")
29 if (sv_isa($arg, \"${ntype}\")) {
30 IV tmp = SvIV((SV*)SvRV($arg));
31 if (sv_isa((SV *)tmp, \"VI\")) {
32 IV tmp2 = SvIV((SV*)SvRV((SV *)tmp));
35 croak(\"screen no longer exists\");
38 croak(\"$var is not of type ${ntype}\");
41 croak(\"$var is not of type ${ntype}\")
43 if (sv_isa($arg, \"VI::TAGQ\")) {
44 $var = ($type) SvIV((SV*)SvRV($arg));
46 croak(\"Tag queue invalidated\");
48 croak(\"$var is not of type ${ntype}\")
50 if (sv_isa($arg, \"VI::TAGQ\")) {
51 $var = ($type) SvIV((SV*)SvRV($arg));
53 croak(\"$var is not of type ${ntype}\")