Bypass Python tests not supported by -builtin

The old static syntax (e.g., dc.new_A() rather than dc.A()) is not
supported with -builtin
This commit is contained in:
William S Fulton 2014-10-02 20:23:08 +01:00
commit afcd61388a
3 changed files with 11 additions and 4 deletions

View file

@ -168,5 +168,11 @@ public:
}
};
%inline %{
#ifdef SWIGPYTHON_BUILTIN
bool is_python_builtin() { return true; }
#else
bool is_python_builtin() { return false; }
#endif
%}