mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 00:05:35 +00:00
generator: Handle new Callback field type.
This commit is contained in:
parent
2852b771ea
commit
7d902ef7e4
|
@ -115,6 +115,10 @@ namespace GtkSharp.Generation {
|
|||
break;
|
||||
|
||||
case "field":
|
||||
// FIXME Generate callbacks.
|
||||
if (member.GetAttributeAsBoolean ("is_callback"))
|
||||
continue;
|
||||
|
||||
name = member.GetAttribute("name");
|
||||
while (fields.ContainsKey (name))
|
||||
name += "mangled";
|
||||
|
|
|
@ -36,6 +36,9 @@ namespace GtkSharp.Generation {
|
|||
{
|
||||
string cstype = SymbolTable.Table.GetCSType(CType, true);
|
||||
|
||||
if (elem.GetAttributeAsBoolean("is_callback"))
|
||||
return true;
|
||||
|
||||
if (cstype == null || cstype == "") {
|
||||
log.Warn (" field \"" + CName + "\" has no cstype, can't generate ABI field.");
|
||||
|
||||
|
|
Loading…
Reference in a new issue