Turn on Python annotations testing again
Testing is skipped where there is no support for it, that is, using -builtin or -fastproxy. How to add this support in needs determining, it's not clear how to do so.
This commit is contained in:
parent
8ce010b915
commit
afc915f490
2 changed files with 36 additions and 19 deletions
|
|
@ -24,3 +24,17 @@ int *no_annotations(int &ri, const char *c) { return NULL; }
|
|||
%}
|
||||
%template(TemplateShort) Space::Template<short>;
|
||||
%template(MakeShort) makeT<short>;
|
||||
|
||||
%inline %{
|
||||
#ifdef SWIGPYTHON_BUILTIN
|
||||
int is_python_builtin() { return 1; }
|
||||
#else
|
||||
int is_python_builtin() { return 0; }
|
||||
#endif
|
||||
|
||||
#if defined SWIGPYTHON_FASTPROXY
|
||||
int is_python_fastproxy() { return 1; }
|
||||
#else
|
||||
int is_python_fastproxy() { return 0; }
|
||||
#endif
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue