partial rollback, might still not work

This commit is contained in:
Nathan Braswell
2016-06-16 09:53:15 -07:00
parent 4de7dd1210
commit 3f89cb1e37
7 changed files with 68 additions and 20 deletions

View File

@@ -446,13 +446,13 @@ obj c_generator (Object) {
/*var base_name = vert->type_def.name*/
var base_name = get_name(vert)
plain_typedefs += string("typedef ")
if (vert->type_def.is_union) {
plain_typedefs += "union "
structs += "union "
} else {
/*if (is_type_def(vert) && vert->type_def.is_union) {*/
/*plain_typedefs += "union "*/
/*structs += "union "*/
/*} else {*/
plain_typedefs += "struct "
structs += "struct "
}
/*}*/
plain_typedefs += base_name + "_dummy " + base_name + ";\n"
structs += base_name + "_dummy {\n"
if (is_type_def(vert)) {