]> gitweb.factorcode.org Git - factor.git/blob - vm/factor.hpp
VM: object_size, compute_entry_point_address, code_block_owner made into
[factor.git] / vm / factor.hpp
1 namespace factor {
2
3 VM_C_API void init_globals();
4 factor_vm* new_factor_vm();
5 VM_C_API void start_standalone_factor(int argc, vm_char** argv);
6
7 // objects
8 cell object_size(cell tagged);
9
10 // os-*
11 void open_console();
12 void close_console();
13 void lock_console();
14 void unlock_console();
15 bool move_file(const vm_char* path1, const vm_char* path2);
16
17 void ignore_ctrl_c();
18 void handle_ctrl_c();
19
20 bool set_memory_locked(cell base, cell size, bool locked);
21
22 }