From: Jérémie Astor Date: Sun, 29 Aug 2021 16:51:42 +0000 (+0200) Subject: :art: Inital RtMidi commit X-Git-Tag: nightly~470^2~38 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=23c4682227115a629fe854ab01d8681090f4250b;p=gwion.git :art: Inital RtMidi commit --- diff --git a/plug b/plug index c0fda581..a5673afc 160000 --- a/plug +++ b/plug @@ -1 +1 @@ -Subproject commit c0fda58156e8d527468c0ddcc3204245da918a96 +Subproject commit a5673afc9e484640e8fb5e4a994f63671d866001 diff --git a/src/import/import_cdef.c b/src/import/import_cdef.c index 3b6081ee..3abd7e9e 100644 --- a/src/import/import_cdef.c +++ b/src/import/import_cdef.c @@ -63,10 +63,9 @@ ANN static Type type_finish(const Gwi gwi, const Type t) { gwi->tmpls++; add_template(gwi->gwion->env, t); } - if (gwi->gwion->data->cdoc) { + if (gwi->gwion->data->cdoc && t->info->cdef) { lint_indent(gwi->lint); gwi->lint->indent++; - assert(t->info->cdef); lint_class_def(gwi->lint, t->info->cdef); } return t; @@ -122,7 +121,7 @@ ANN Type gwi_struct_ini(const Gwi gwi, const m_str name) { } ANN m_int gwi_class_end(const Gwi gwi) { - if (gwi->gwion->data->cdoc) { + if (gwi->gwion->data->cdoc && gwi->gwion->env->class_def->info->cdef) { gwi->lint->indent--; lint_indent(gwi->lint); lint_rbrace(gwi->lint);