%ignore director fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
38ed98a459
commit
d096cc1613
8 changed files with 262 additions and 176 deletions
|
|
@ -12,6 +12,13 @@ public class runme
|
|||
|
||||
void run()
|
||||
{
|
||||
// Just check the classes can be instantiated and other methods work as expected
|
||||
DIgnoresDerived a = new DIgnoresDerived();
|
||||
if (a.Triple(5) != 15)
|
||||
throw new Exception("Triple failed");
|
||||
DAbstractIgnoresDerived b = new DAbstractIgnoresDerived();
|
||||
if (b.Quadruple(5) != 20)
|
||||
throw new Exception("Quadruple failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -22,13 +29,29 @@ class DIgnoresDerived : DIgnores
|
|||
}
|
||||
|
||||
// These will give a warning if the %ignore is not working
|
||||
public virtual void OverloadedMethod(int n, int xoffset, int yoffset) {}
|
||||
public virtual void OverloadedMethod(int n, int xoffset) {}
|
||||
public virtual void OverloadedMethod(int n) {}
|
||||
public virtual int OverloadedMethod(int n, int xoffset, int yoffset) { return 0; }
|
||||
public virtual int OverloadedMethod(int n, int xoffset) { return 0; }
|
||||
public virtual int OverloadedMethod(int n) { return 0; }
|
||||
|
||||
public virtual void ProtectedMethod(int n, int xoffset, int yoffset) {}
|
||||
public virtual void ProtectedMethod(int n, int xoffset) {}
|
||||
public virtual void ProtectedMethod(int n) {}
|
||||
public virtual int OverloadedProtectedMethod(int n, int xoffset, int yoffset) { return 0; }
|
||||
public virtual int OverloadedProtectedMethod(int n, int xoffset) { return 0; }
|
||||
public virtual int OverloadedProtectedMethod(int n) { return 0; }
|
||||
}
|
||||
|
||||
class DAbstractIgnoresDerived : DAbstractIgnores
|
||||
{
|
||||
public DAbstractIgnoresDerived() : base()
|
||||
{
|
||||
}
|
||||
|
||||
// These will give a warning if the %ignore is not working
|
||||
public virtual int OverloadedMethod(int n, int xoffset, int yoffset) { return 0; }
|
||||
public virtual int OverloadedMethod(int n, int xoffset) { return 0; }
|
||||
public virtual int OverloadedMethod(int n) { return 0; }
|
||||
|
||||
public virtual int OverloadedProtectedMethod(int n, int xoffset, int yoffset) { return 0; }
|
||||
public virtual int OverloadedProtectedMethod(int n, int xoffset) { return 0; }
|
||||
public virtual int OverloadedProtectedMethod(int n) { return 0; }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue