Browse Source

reorder things

master
Martin Dørum 3 years 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

l2_word data[]; 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 { struct l2_vm_stack_frame {
l2_word ns; l2_word ns;
l2_word sptr; l2_word sptr;
l2_word args; 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 { struct l2_vm {
int halted; int halted;
int need_gc; int need_gc;

Loading…
Cancel
Save