From 90390d80d7ae1e9ba492b861c8e509c973368bda Mon Sep 17 00:00:00 2001 From: Vincent Couvert Date: Mon, 23 May 2011 12:46:53 +0000 Subject: [PATCH] Add missing typecheck for boolean git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12706 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/scilab/scitypemaps.swg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/scilab/scitypemaps.swg b/Lib/scilab/scitypemaps.swg index d94d991d8..f4a63e2b6 100644 --- a/Lib/scilab/scitypemaps.swg +++ b/Lib/scilab/scitypemaps.swg @@ -335,6 +335,7 @@ %typecheck(SWIG_TYPECHECK_DOUBLE) double { SCILAB_TYPECHECK(isDoubleType) } %typecheck(SWIG_TYPECHECK_FLOAT) float { SCILAB_TYPECHECK(isDoubleType) } +%typecheck(SWIG_TYPECHECK_BOOL) bool { SCILAB_TYPECHECK(isBooleanType) } %typecheck(SWIG_TYPECHECK_STRING) char * { SCILAB_TYPECHECK(isStringType) } %typecheck(SWIG_TYPECHECK_POINTER) SWIGTYPE * { SCILAB_TYPECHECK(isPointerType) } @@ -364,6 +365,7 @@ %typecheck(SWIG_TYPECHECK_DOUBLE_ARRAY) double [ANY] { SCILAB_TYPECHECK(isDoubleType) } %typecheck(SWIG_TYPECHECK_FLOAT_ARRAY) float [ANY] { SCILAB_TYPECHECK(isDoubleType) } +%typecheck(SWIG_TYPECHECK_BOOL_ARRAY) bool { SCILAB_TYPECHECK(isBooleanType) } %typecheck(SWIG_TYPECHECK_STRING_ARRAY) char ** { SCILAB_TYPECHECK(isStringType) } %apply int { size_t };