From d6477b1912eec1f5aa573dbe63edbc70e3240889 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Mon, 17 Mar 2003 18:03:50 +0000 Subject: [PATCH] Added void * typemap to fix Examples/tcl/value (not really sure why this was missing in the first place). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4565 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/tcl/tcl8.swg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SWIG/Lib/tcl/tcl8.swg b/SWIG/Lib/tcl/tcl8.swg index 1f35219e1..6011d74d3 100644 --- a/SWIG/Lib/tcl/tcl8.swg +++ b/SWIG/Lib/tcl/tcl8.swg @@ -34,6 +34,8 @@ %typemap(in) SWIGTYPE *, SWIGTYPE &, SWIGTYPE [] "if ((SWIG_ConvertPtr(interp, $input, (void **) &$1, $1_descriptor,SWIG_POINTER_EXCEPTION | $disown) != TCL_OK)) SWIG_fail;"; +%typemap(in) void * + "if ((SWIG_ConvertPtr(interp, $input, (void **) &$1, 0,SWIG_POINTER_EXCEPTION | $disown) != TCL_OK)) SWIG_fail;"; /* For bools, we first convert to an integer and then to a bool. There is no guarantee that a bool is the same size as an int so we have to do this */