diff options
author | Paweł Tomulik <ptomulik@meil.pw.edu.pl> | 2016-03-23 16:11:15 +0100 |
---|---|---|
committer | Paweł Tomulik <ptomulik@meil.pw.edu.pl> | 2016-03-24 10:59:23 +0100 |
commit | 350d43d98822c80d5a8696f33ee5634a720736fd (patch) | |
tree | 07a7b36faa6abffca8368e4a1a3de3b4dea7310e /Lib/typemaps | |
parent | ba333729c3bf2a269ed2b2315a17e4f7127ae94e (diff) | |
download | swig-350d43d98822c80d5a8696f33ee5634a720736fd.tar.gz |
handle const pointers to functions
Diffstat (limited to 'Lib/typemaps')
-rw-r--r-- | Lib/typemaps/swigtype.swg | 1 |
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) |