diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 22:09:26 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 22:09:26 +0000 |
commit | 26dea6ce72ce6fe4011e5a7dbfad9de9330c75f7 (patch) | |
tree | 6566b49165a17e591bf6cad89ad384c818670c03 /vm | |
parent | 90ee9b492db7bf2f8efcf07c30faa719aecec920 (diff) | |
download | ovm-26dea6ce72ce6fe4011e5a7dbfad9de9330c75f7.tar.gz ovm-26dea6ce72ce6fe4011e5a7dbfad9de9330c75f7.tar.bz2 ovm-26dea6ce72ce6fe4011e5a7dbfad9de9330c75f7.zip |
Added todos to rename the constructive macros in runtime.c
Diffstat (limited to 'vm')
-rw-r--r-- | vm/runtime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vm/runtime.c b/vm/runtime.c index 4c4d9ff..421256a 100644 --- a/vm/runtime.c +++ b/vm/runtime.c @@ -806,6 +806,7 @@ err_t vm_pop_word(vm_t *vm, data_t *ret) return ERR_OK; } +// TODO: rename this to something more appropriate #define VM_MEMORY_STACK_CONSTR(ACTION, TYPE) \ err_t vm_##ACTION##_stack_##TYPE(vm_t *vm) \ { \ @@ -846,6 +847,7 @@ err_t vm_msize(vm_t *vm) return vm_push_word(vm, DWORD(page->available)); } +// TODO: rename this to something more appropriate #define VM_NOT_TYPE(TYPEL, TYPEU) \ err_t vm_not_##TYPEL(vm_t *vm) \ { \ @@ -860,6 +862,7 @@ VM_NOT_TYPE(byte, BYTE) VM_NOT_TYPE(hword, HWORD) VM_NOT_TYPE(word, WORD) +// TODO: rename this to something more appropriate #define VM_SAME_TYPE(COMPNAME, COMP, TYPEL, TYPEU) \ err_t vm_##COMPNAME##_##TYPEL(vm_t *vm) \ { \ @@ -873,6 +876,7 @@ VM_NOT_TYPE(word, WORD) return vm_push_##TYPEL(vm, D##TYPEU(a.as_##TYPEL COMP b.as_##TYPEL)); \ } +// TODO: rename this to something more appropriate #define VM_COMPARATOR_TYPE(COMPNAME, COMP, TYPEL, GETL) \ err_t vm_##COMPNAME##_##GETL(vm_t *vm) \ { \ |