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:
parent
9f1b051c16
commit
afcd61388a
3 changed files with 11 additions and 4 deletions
|
|
@ -168,5 +168,11 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
%inline %{
|
||||
#ifdef SWIGPYTHON_BUILTIN
|
||||
bool is_python_builtin() { return true; }
|
||||
#else
|
||||
bool is_python_builtin() { return false; }
|
||||
#endif
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue