From ff2e0cc85ea2e64b545b137dafb7a07575c41224 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 1 Dec 2004 00:57:58 +0000 Subject: [PATCH] fix for -director option git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6807 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/CParse/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Source/CParse/util.c b/SWIG/Source/CParse/util.c index c2cda28c5..dfde65444 100644 --- a/SWIG/Source/CParse/util.c +++ b/SWIG/Source/CParse/util.c @@ -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");