eolian: fix C type serialization (handle undefined)

This commit is contained in:
Daniel Kolesa 2016-05-10 18:06:56 +01:00
parent 6c26857190
commit 4126b7faba
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,8 @@ database_type_to_str(const Eolian_Type *tp, Eina_Strbuf *buf, const char *name)
}
else if (tp->type == EOLIAN_TYPE_VOID)
eina_strbuf_append(buf, "void");
else if (tp->type == EOLIAN_TYPE_UNDEFINED)
eina_strbuf_append(buf, "__undefined_type");
else
{
Eolian_Type *btp = tp->base_type;