add nodirprot mode

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6492 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-24 05:49:38 +00:00
commit 30a26cefd9

View file

@ -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");