From 30a26cefd902fddeb30abbad583aaee6111da526 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 24 Oct 2004 05:49:38 +0000 Subject: [PATCH] add nodirprot mode git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6492 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/python.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index 16d4615b3..5f13c7e7d 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -200,11 +200,16 @@ public: if (mod) { Node *options = Getattr(mod, "options"); if (options) { + int dirprot = 0; + if (Getattr(options, "dirprot")) { + dirprot = 1; + } + if (Getattr(options, "nodirprot")) { + dirprot = 0; + } if (Getattr(options, "directors")) { allow_directors(); - } - if (Getattr(options, "dirprot")) { - allow_dirprot(); + if (dirprot) allow_dirprot(); } mod_docstring = Getattr(options, "docstring"); package = Getattr(options, "package");