wip: working on externs loading

- WIP: add extern objects initializing/freeing functions
- Feat: add extern objects loading in VM initializer
This commit is contained in:
samsonium
2026-11-08 17:12:31 +03:00
parent 5de995a3c2
commit 1c57525604
4 changed files with 270 additions and 0 deletions
+2
View File
@@ -5,12 +5,14 @@
#include <stddef.h>
#include <stdint.h>
#include <vm/fzl_vm_env.h>
#include <vm/fzl_vm_extern.h>
#include <vm/fzl_vm_reader.h>
// VM descriptor
typedef struct
{
fzl_vm_reader_t *reader;
fzl_vm_extern_t *prep_fns;
size_t ip;