summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-08-16 21:50:25 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-08-16 21:50:25 +0800
commit8b72e93f4512de6d07e1e1286a5557eaa72e2448 (patch)
treec4b737ffbb411344adda5a4420fbc5c2d7f5727e
parent3cbe132af793efa6142ee7d826bdab74ef110a6f (diff)
The typemaps so far are Perl only
-rw-r--r--pikul.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/pikul.i b/pikul.i
index 748edae..507491a 100644
--- a/pikul.i
+++ b/pikul.i
@@ -3,6 +3,8 @@
#include "pikul.h"
%}
+#ifdef SWIGPERL
+
%typemap(in) char *[] {
AV *tempav = (AV *)SvRV($input);
I32 len = av_len(tempav);
@@ -41,5 +43,7 @@
free($1);
}
+#endif
+
%rename("%(strip:[pikul_])s") "";
%include "pikul.h"