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:
Marcelo Matus 2005-02-25 00:47:10 +00:00
commit 58db22803e
3 changed files with 41 additions and 9 deletions

View file

@ -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