Commit ca2c97f1 authored by Mike Wey's avatar 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
......@@ -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];
}
......
......@@ -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];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment