From 23c4682227115a629fe854ab01d8681090f4250b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 29 Aug 2021 18:51:42 +0200 Subject: [PATCH] :art: Inital RtMidi commit --- plug | 2 +- src/import/import_cdef.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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); -- 2.43.0