globals.h 320 B

123456789101112131415161718192021
  1. #ifndef GLOBALS_H
  2. #define GLOBALS_H
  3. #include "scm.h"
  4. #define VM_GLOBALS_SIZE 600
  5. // (1 << 12)
  6. extern scm vm_reg_ret;
  7. extern scm vm_reg_env;
  8. extern scm vm_globals[VM_GLOBALS_SIZE];
  9. scm vm_global_ref(scm idx);
  10. void vm_set_global(scm idx, scm obj);
  11. scm vm_env_ref(scm idx);
  12. void vm_set_env(scm idx, scm obj);
  13. #endif