]> Nishi Git Mirror - gwion.git/commitdiff
:art: Inital RtMidi commit
authorJérémie Astor <fennecdjay@gmail.com>
Sun, 29 Aug 2021 16:51:42 +0000 (18:51 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Sun, 29 Aug 2021 16:51:42 +0000 (18:51 +0200)
plug
src/import/import_cdef.c

diff --git a/plug b/plug
index c0fda58156e8d527468c0ddcc3204245da918a96..a5673afc9e484640e8fb5e4a994f63671d866001 160000 (submodule)
--- a/plug
+++ b/plug
@@ -1 +1 @@
-Subproject commit c0fda58156e8d527468c0ddcc3204245da918a96
+Subproject commit a5673afc9e484640e8fb5e4a994f63671d866001
index 3b6081ee793bc21fedbe0c52eed6c22fab75db03..3abd7e9e816ad873a61ba5cf888f559ff57453ea 100644 (file)
@@ -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);