allow director protected members by default
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8854 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ae83eaab01
commit
3ffbfc43ef
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ char cvsroot_lang_cxx[] = "$Header$";
|
|||
#include <ctype.h>
|
||||
|
||||
static int director_mode = 0; /* set to 0 on default */
|
||||
static int director_protected_mode = 0; /* set to 0 on default */
|
||||
static int director_protected_mode = 1; /* set to 1 on default */
|
||||
static int naturalvar_mode = 0;
|
||||
|
||||
/* Set director_protected_mode */
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ static const char *usage1 = (const char*)"\
|
|||
-debug_template - Display information for debugging templates\n\
|
||||
-debug_typemap - Display information for debugging typemaps\n\
|
||||
-directors - Turn on director mode for all the classes, mainly for testing\n\
|
||||
-dirprot - Turn on wrapping of protected members for director classes\n\
|
||||
-dirprot - Turn on wrapping of protected members for director classes (default)\n\
|
||||
-D<symbol> - Define a symbol <symbol> (for conditional compilation)\n\
|
||||
-dump_classes - Display information about the classes found in the interface\n\
|
||||
-dump_module - Display information on the module node tree avoiding system nodes\n\
|
||||
|
|
@ -790,7 +790,7 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
|||
|
||||
/* Turn off directors mode */
|
||||
Wrapper_director_mode_set(0);
|
||||
Wrapper_director_protected_mode_set(0);
|
||||
Wrapper_director_protected_mode_set(1);
|
||||
|
||||
// Check for SWIG_LIB environment variable
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue