tidy generated code up

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6664 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-11-04 22:26:17 +00:00
commit 5df51fab85

View file

@ -417,7 +417,6 @@ static int NAME(TYPE x) {
*
************************************************************************/
%{
/*
SWIG_TEMPLATE_DISAMBIGUATOR is needed when wrapping template calls
(cwrap.c:Swig_cfunction_call/Swig_cmethod_call), as in
@ -430,6 +429,7 @@ static int NAME(TYPE x) {
- gcc-3.4 forbids the use of 'template'.
- gcc-3.2.3 produces internal errors if you use 'template'
*/
%insert("runtime") %{
#ifndef SWIG_TEMPLATE_DISAMBIGUATOR
# if defined(__SUNPRO_CC)
# define SWIG_TEMPLATE_DISAMBIGUATOR template
@ -437,5 +437,5 @@ static int NAME(TYPE x) {
# define SWIG_TEMPLATE_DISAMBIGUATOR
# endif
#endif
%}