Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dlang
gtkd
Commits
ca2c97f1
Commit
ca2c97f1
authored
May 08, 2021
by
Mike Wey
Browse files
Correctly forward int and ref integers.
Supports for other types like string and bool is still missing. Fixes: #333
parent
323ff96c
Changes
2
Hide whitespace changes
Inline
Side-by-side
generated/gtkd/gtkd/Implement.d
View file @
ca2c97f1
...
...
@@ -59,6 +59,7 @@ import gobject.c.types;
*/
mixin
template
ImplementClass
(
Class
)
{
pragma
(
msg
,
ImplementClassImpl
!(
Class
,
typeof
(
this
))());
mixin
(
ImplementClassImpl
!(
Class
,
typeof
(
this
))());
}
...
...
@@ -420,6 +421,8 @@ private string getWrapFunction(Impl, Member, string name)()
result
~=
"d_"
~
ParamNames
[
i
];
else
if
(
isGtkdType
!(
DParamTypes
[
i
])
)
result
~=
"ObjectG.getDObject!("
~
DParamTypes
[
i
].
stringof
~
")("
~
ParamNames
[
i
]
~
")"
;
else
if
(
ParamStorage
[
i
]
==
STC
.
out_
||
ParamStorage
[
i
]
==
STC
.
ref_
)
result
~=
"*"
~
ParamNames
[
i
];
else
result
~=
ParamNames
[
i
];
}
...
...
src/gtkd/Implement.d
View file @
ca2c97f1
...
...
@@ -59,6 +59,7 @@ import gobject.c.types;
*/
mixin
template
ImplementClass
(
Class
)
{
pragma
(
msg
,
ImplementClassImpl
!(
Class
,
typeof
(
this
))());
mixin
(
ImplementClassImpl
!(
Class
,
typeof
(
this
))());
}
...
...
@@ -420,6 +421,8 @@ private string getWrapFunction(Impl, Member, string name)()
result
~=
"d_"
~
ParamNames
[
i
];
else
if
(
isGtkdType
!(
DParamTypes
[
i
])
)
result
~=
"ObjectG.getDObject!("
~
DParamTypes
[
i
].
stringof
~
")("
~
ParamNames
[
i
]
~
")"
;
else
if
(
ParamStorage
[
i
]
==
STC
.
out_
||
ParamStorage
[
i
]
==
STC
.
ref_
)
result
~=
"*"
~
ParamNames
[
i
];
else
result
~=
ParamNames
[
i
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment