1
0
forked from aniani/vim
vim/src/typemap
Bram Moolenaar be74734429 updated for version 7.3.439
Problem:    Compiler warnings to size casts in Perl interface.
Solution:   Use XS macros. (James McCoy)
2012-02-12 00:31:52 +01:00

15 lines
284 B
Plaintext

TYPEMAP
VIWIN T_VIOBJNOMUNGE
VIBUF T_VIOBJNOMUNGE
INPUT
T_VIOBJNOMUNGE
if (sv_isa($arg, \"${ntype}\")) {
IV tmp = SvIV((SV*)SvRV($arg));
$var = INT2PTR($type, tmp);
if (!tmp)
croak(\"$ntype no longer exists\");
}
else
croak(\"$var is not of type ${ntype}\")