summaryrefslogtreecommitdiff
path: root/Lib/d
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2019-03-30 12:34:06 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2019-04-08 19:20:50 +0100
commit831fae3c698fd6a690d06aac257c381e69d474ea (patch)
tree568932167e6ecf93a196aea724d7b295d4b230a3 /Lib/d
parent06462acdf9b7738a19dce5579d90b1c91b3f9cfb (diff)
downloadswig-831fae3c698fd6a690d06aac257c381e69d474ea.tar.gz
Add the parameters typemap attribute to D and Java destructor wrapper typemaps
Added to the javadestruct, javadestruct_derived, ddispose, ddispose_derived typemaps to mirror enhanced flexibility in the csdisposing and csdisposing_derived (C#) typemaps. If provided the contents are generated as the delete/dispose method's parameters declaration.
Diffstat (limited to 'Lib/d')
-rw-r--r--Lib/d/dclassgen.swg4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/d/dclassgen.swg b/Lib/d/dclassgen.swg
index 68910b412..84fa03a0b 100644
--- a/Lib/d/dclassgen.swg
+++ b/Lib/d/dclassgen.swg
@@ -33,7 +33,7 @@
// We do not use »override« attribute for generated dispose() methods to stay
// somewhat compatible to Phobos and older Tango versions where Object.dispose()
// does not exist.
-%typemap(ddispose, methodname="dispose", methodmodifiers="public") SWIGTYPE {
+%typemap(ddispose, methodname="dispose", methodmodifiers="public", parameters="") SWIGTYPE {
synchronized(this) {
if (swigCPtr !is null) {
if (swigCMemOwn) {
@@ -45,7 +45,7 @@
}
}
-%typemap(ddispose_derived, methodname="dispose", methodmodifiers="public") SWIGTYPE {
+%typemap(ddispose_derived, methodname="dispose", methodmodifiers="public", parameters="") SWIGTYPE {
synchronized(this) {
if (swigCPtr !is null) {
if (swigCMemOwn) {