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:
parent
6bd73ed34f
commit
5df51fab85
1 changed files with 2 additions and 2 deletions
|
|
@ -417,7 +417,6 @@ static int NAME(TYPE x) {
|
||||||
*
|
*
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
|
|
||||||
%{
|
|
||||||
/*
|
/*
|
||||||
SWIG_TEMPLATE_DISAMBIGUATOR is needed when wrapping template calls
|
SWIG_TEMPLATE_DISAMBIGUATOR is needed when wrapping template calls
|
||||||
(cwrap.c:Swig_cfunction_call/Swig_cmethod_call), as in
|
(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.4 forbids the use of 'template'.
|
||||||
- gcc-3.2.3 produces internal errors if you use 'template'
|
- gcc-3.2.3 produces internal errors if you use 'template'
|
||||||
*/
|
*/
|
||||||
|
%insert("runtime") %{
|
||||||
#ifndef SWIG_TEMPLATE_DISAMBIGUATOR
|
#ifndef SWIG_TEMPLATE_DISAMBIGUATOR
|
||||||
# if defined(__SUNPRO_CC)
|
# if defined(__SUNPRO_CC)
|
||||||
# define SWIG_TEMPLATE_DISAMBIGUATOR template
|
# define SWIG_TEMPLATE_DISAMBIGUATOR template
|
||||||
|
|
@ -437,5 +437,5 @@ static int NAME(TYPE x) {
|
||||||
# define SWIG_TEMPLATE_DISAMBIGUATOR
|
# define SWIG_TEMPLATE_DISAMBIGUATOR
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue