From b1f8846f0b5f6a2b797a05e7da1ef9e6cebd97bb Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 18 Dec 2005 00:09:53 +0000 Subject: [PATCH] export SWIG version git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8000 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/typemaps/swigmacros.swg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Lib/typemaps/swigmacros.swg b/Lib/typemaps/swigmacros.swg index 75e790f14..9af455af8 100644 --- a/Lib/typemaps/swigmacros.swg +++ b/Lib/typemaps/swigmacros.swg @@ -107,6 +107,15 @@ nocppval #endif %enddef +/* insert the SWIG_VERSION in the code */ +#if SWIG_VERSION +%insert("header") { + %define_as(SWIGVERSION, SWIG_VERSION) +} +#endif + + + /* ----------------------------------------------------------------------------- * Casting operators * ----------------------------------------------------------------------------- */ @@ -139,7 +148,6 @@ nocppval %define_as(SWIG_as_voidptrptr(a), ((void)%as_voidptr(*a),%reinterpret_cast(a, void**))) } - /* ----------------------------------------------------------------------------- * Allocating/freeing elements