summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2009-04-21 20:09:15 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2009-04-21 20:09:15 +0000
commit60f0c7e56b815bb38a4fdbf85afa561a12ab01d0 (patch)
treedc75c4859251f0d285511c9b383fa02c00d39383
parentbd46f03b6fcb7617c4ba47c608abc01d846ab5fb (diff)
downloadswig-60f0c7e56b815bb38a4fdbf85afa561a12ab01d0.tar.gz
Fix #2753469 - bool &OUTPUT and bool *OUTPUT typemaps initialisation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--CHANGES.current3
-rw-r--r--Lib/csharp/typemaps.i4
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGES.current b/CHANGES.current
index fcf35a6b5..efca7023b 100644
--- a/CHANGES.current
+++ b/CHANGES.current
@@ -1,6 +1,9 @@
Version 1.3.40 (in progress)
============================
+2009-04-21: wsfulton
+ [C#] Fix #2753469 - bool &OUTPUT and bool *OUTPUT typemaps initialisation.
+
2009-04-09: wsfulton
Fix #2746858 - C macro expression using floating point numbers
diff --git a/Lib/csharp/typemaps.i b/Lib/csharp/typemaps.i
index ddfbd1b0c..56cc6cb61 100644
--- a/Lib/csharp/typemaps.i
+++ b/Lib/csharp/typemaps.i
@@ -192,6 +192,10 @@ OUTPUT_TYPEMAP(double, double, double, DOUBLE_PTR)
#undef OUTPUT_TYPEMAP
+%typemap(in) bool *OUTPUT, bool &OUTPUT
+%{ *$input = 0;
+ $1 = ($1_ltype)$input; %}
+
/*
INOUT typemaps