From aed8ce9da277f5ecffe968b324f242c41c3b752a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:31 +0200 Subject: Adding upstream version 2:9.0.1378. Signed-off-by: Daniel Baumann --- src/typemap | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/typemap (limited to 'src/typemap') diff --git a/src/typemap b/src/typemap new file mode 100644 index 0000000..ca1600e --- /dev/null +++ b/src/typemap @@ -0,0 +1,14 @@ +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}\") -- cgit v1.2.3