Bypass Python tests not supported by -builtin

The base class is needed for the builtin class hierarchy, like many
other languages
This commit is contained in:
William S Fulton 2014-10-04 18:40:19 +01:00
commit ab79441151
3 changed files with 13 additions and 2 deletions

View file

@ -8,7 +8,7 @@
%import "import_nomodule.h"
#if !defined(SWIGJAVA) && !defined(SWIGRUBY) && !defined(SWIGCSHARP) && !defined(SWIGD)
#if !defined(SWIGJAVA) && !defined(SWIGRUBY) && !defined(SWIGCSHARP) && !defined(SWIGD) && !defined(SWIGPYTHON_BUILTIN)
/**
* The proxy class does not have Bar derived from Foo, yet an instance of Bar
@ -40,3 +40,10 @@ class Bar : public Foo { };
#endif
%inline %{
#ifdef SWIGPYTHON_BUILTIN
bool is_python_builtin() { return true; }
#else
bool is_python_builtin() { return false; }
#endif
%}