Remove Go director hack just to please the SWIG test-suite

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2010-06-11 19:05:30 +00:00
commit 7e7bd74ff2
2 changed files with 4 additions and 11 deletions

View file

@ -18,6 +18,8 @@ namespace Swig {
#endif
%}
// Some director implementations do not have Swig::director
#if !defined(SWIGGO)
%extend SpObject
{
size_t ExceptionMethod()
@ -29,7 +31,8 @@ namespace Swig {
size_t size = sizeof(Swig::Director);
return size;
}
};
}
#endif
%inline %{

View file

@ -196,13 +196,3 @@ void __go_panic_msg(const char *);
if (!(expr)) { _swig_gopanic(msg); } else
%}
#ifdef __cplusplus
/* We don't need a Swig::Director class, but the Swig testsuite
expects one. */
%insert(runtime) %{
namespace Swig {
typedef int Director;
}
%}
#endif