add -nortti option in python, to avoid using RTTI, mainly with directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6999 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9cbe065017
commit
58db22803e
3 changed files with 41 additions and 9 deletions
|
|
@ -122,3 +122,12 @@ These methods "may be called" if needed.
|
|||
#endif
|
||||
#define %nocallback %nopythoncallback; %feature("callback","")
|
||||
|
||||
|
||||
/* When using -nortti, tell directors to avoid RTTI */
|
||||
#ifdef SWIG_NORTTI
|
||||
%insert("runtime") %{
|
||||
#ifndef SWIG_DIRECTOR_NORTTI
|
||||
#define SWIG_DIRECTOR_NORTTI
|
||||
#endif
|
||||
%}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue