Bypass Python tests not supported by -builtin

There are a number of autodoc comment differences when using -builtin.
Some of which might need fixing, but for now we'll accept them as they
are.
This commit is contained in:
William S Fulton 2014-10-03 20:09:09 +01:00
commit 185d65895f
3 changed files with 190 additions and 28 deletions

View file

@ -133,3 +133,11 @@ typedef int Integer;
void banana(S *a, const struct tagS *b, int c, Integer d) {}
%}
%inline %{
#ifdef SWIGPYTHON_BUILTIN
bool is_python_builtin() { return true; }
#else
bool is_python_builtin() { return false; }
#endif
%}