Browse Source

reorder things

master
Martin Dørum 7 months ago
parent
commit
eb57b3faa9
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      include/lang2/vm/vm.h

+ 4
- 4
include/lang2/vm/vm.h View File

@@ -95,6 +95,10 @@ struct l2_vm_namespace {
l2_word data[];
};

l2_word l2_vm_namespace_get(struct l2_vm *vm, struct l2_vm_value *ns, l2_word key);
void l2_vm_namespace_set(struct l2_vm_value *ns, l2_word key, l2_word val);
int l2_vm_namespace_replace(struct l2_vm *vm, struct l2_vm_value *ns, l2_word key, l2_word val);

struct l2_vm_stack_frame {
l2_word ns;
l2_word sptr;
@@ -102,10 +106,6 @@ struct l2_vm_stack_frame {
l2_word args;
};

l2_word l2_vm_namespace_get(struct l2_vm *vm, struct l2_vm_value *ns, l2_word key);
void l2_vm_namespace_set(struct l2_vm_value *ns, l2_word key, l2_word val);
int l2_vm_namespace_replace(struct l2_vm *vm, struct l2_vm_value *ns, l2_word key, l2_word val);

struct l2_vm {
int halted;
int need_gc;

Loading…
Cancel
Save