From e58d3816678df5bd8843ae3965977897731ac7ac Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 27 Apr 2024 02:52:27 +0000 Subject: [PATCH] binmodule-loaded git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@73 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- Serenade/binmodule.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Serenade/binmodule.c b/Serenade/binmodule.c index 49423d9..9e0413c 100644 --- a/Serenade/binmodule.c +++ b/Serenade/binmodule.c @@ -30,5 +30,17 @@ #include "binmodule.h" +#include "interpreter.h" + +#ifdef __MINGW32__ +#include +#else +#include +#endif + void binmodule_init(struct sn_interpreter* sn){ + struct sn_generic* gen = malloc(sizeof(struct sn_generic)); + gen->type = SN_TYPE_DOUBLE; + gen->number = 1; + sn_set_variable(sn, "binmodule-loaded", gen); } -- 2.43.0