From 47ae5abfab5a15721bd4949dda8f396443ea2bb0 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/SWIG@6807 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/CParse/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CParse/util.c b/Source/CParse/util.c index c2cda28c5..dfde65444 100644 --- a/Source/CParse/util.c +++ b/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");