]> Nishi Git Mirror - serenade.git/commitdiff
binmodule-loaded
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Sat, 27 Apr 2024 02:52:27 +0000 (02:52 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Sat, 27 Apr 2024 02:52:27 +0000 (02:52 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@73 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/binmodule.c

index 49423d9118d1e4462ae843f1176efd543828a273..9e0413c4b2939603017fe834a20557658e69e169 100644 (file)
 
 #include "binmodule.h"
 
+#include "interpreter.h"
+
+#ifdef __MINGW32__
+#include <libloaderapi.h>
+#else
+#include <dlfcn.h>
+#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);
 }