more on protected ctors+directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
707afe1139
commit
ffa25c871d
2 changed files with 3 additions and 2 deletions
|
|
@ -97,6 +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 ((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