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:
parent
66402343a5
commit
30a26cefd9
1 changed files with 8 additions and 3 deletions
|
|
@ -200,11 +200,16 @@ public:
|
||||||
if (mod) {
|
if (mod) {
|
||||||
Node *options = Getattr(mod, "options");
|
Node *options = Getattr(mod, "options");
|
||||||
if (options) {
|
if (options) {
|
||||||
|
int dirprot = 0;
|
||||||
|
if (Getattr(options, "dirprot")) {
|
||||||
|
dirprot = 1;
|
||||||
|
}
|
||||||
|
if (Getattr(options, "nodirprot")) {
|
||||||
|
dirprot = 0;
|
||||||
|
}
|
||||||
if (Getattr(options, "directors")) {
|
if (Getattr(options, "directors")) {
|
||||||
allow_directors();
|
allow_directors();
|
||||||
}
|
if (dirprot) allow_dirprot();
|
||||||
if (Getattr(options, "dirprot")) {
|
|
||||||
allow_dirprot();
|
|
||||||
}
|
}
|
||||||
mod_docstring = Getattr(options, "docstring");
|
mod_docstring = Getattr(options, "docstring");
|
||||||
package = Getattr(options, "package");
|
package = Getattr(options, "package");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue