summaryrefslogtreecommitdiff
path: root/Lib/typemaps
diff options
context:
space:
mode:
authorPaweł Tomulik <ptomulik@meil.pw.edu.pl>2016-03-23 16:11:15 +0100
committerPaweł Tomulik <ptomulik@meil.pw.edu.pl>2016-03-24 10:59:23 +0100
commit350d43d98822c80d5a8696f33ee5634a720736fd (patch)
tree07a7b36faa6abffca8368e4a1a3de3b4dea7310e /Lib/typemaps
parentba333729c3bf2a269ed2b2315a17e4f7127ae94e (diff)
downloadswig-350d43d98822c80d5a8696f33ee5634a720736fd.tar.gz
handle const pointers to functions
Diffstat (limited to 'Lib/typemaps')
-rw-r--r--Lib/typemaps/swigtype.swg1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/typemaps/swigtype.swg b/Lib/typemaps/swigtype.swg
index e8124df9c..40d3ff5e9 100644
--- a/Lib/typemaps/swigtype.swg
+++ b/Lib/typemaps/swigtype.swg
@@ -625,6 +625,7 @@
%typemap(constcode, noblock=1) SWIGTYPE ((*)(ANY)){
%set_constant("$symname", SWIG_NewFunctionPtrObj((void *)$value, $descriptor));
}
+%typemap(constcode) SWIGTYPE ((* const)(ANY)) = SWIGTYPE ((*)(ANY));
#if defined(SWIG_DIRECTOR_TYPEMAPS)