From 748410bde36e3ee405ef3a7b3253b0d6ea1c6f34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 17 May 2020 16:23:49 +0200 Subject: [PATCH] :bug: t_gack needs gack --- src/lib/engine.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/engine.c b/src/lib/engine.c index 3407d96f..35d3b454 100644 --- a/src/lib/engine.c +++ b/src/lib/engine.c @@ -27,6 +27,10 @@ static GACK(gack_function) { INTERP_PRINTF("%s", t->name) } +static GACK(gack_gack) { + INTERP_PRINTF("%s", *(m_str*)VALUE) +} + static GACK(gack_fptr) { const VM_Code code = *(VM_Code*)VALUE; if(code) @@ -87,6 +91,7 @@ ANN static m_bool import_core_libs(const Gwi gwi) { GWI_BB(gwi_gack(gwi, t_void, gack_void)) GWI_BB(gwi_set_global_type(gwi, t_void, et_void)) const Type t_gack = gwi_mk_type(gwi, "@Gack", SZ_INT, NULL); + GWI_BB(gwi_gack(gwi, t_gack, gack_gack)) GWI_BB(gwi_set_global_type(gwi, t_gack, et_gack)) const Type t_int = gwi_mk_type(gwi, "int", SZ_INT, NULL); GWI_BB(gwi_gack(gwi, t_int, gack_int)) -- 2.43.0