fix for -director option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
28ba4aca2d
commit
ff2e0cc85e
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ void cparse_normalize_void(Node *n) {
|
|||
int need_protected(Node* n, int dirprot_mode)
|
||||
{
|
||||
/* First, 'n' looks like a function */
|
||||
if (!dirprot_mode) return 0;
|
||||
if (!dirprot_mode && !Swig_director_mode()) return 0;
|
||||
if ((Strcmp(nodeType(n),"cdecl") == 0) &&
|
||||
SwigType_isfunction(Getattr(n,"decl"))) {
|
||||
String *storage = Getattr(n,"storage");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue