]> gitweb.factorcode.org Git - factor.git/blob - vm/mvm.hpp
vm: replace assert with FACTOR_ASSERT
[factor.git] / vm / mvm.hpp
1 namespace factor
2 {
3
4 void init_mvm();
5 void register_vm_with_thread(factor_vm *vm);
6 factor_vm *current_vm_p();
7
8 inline factor_vm *current_vm()
9 {
10         factor_vm *vm = current_vm_p();
11         FACTOR_ASSERT(vm != NULL);
12         return vm;
13 }
14
15 VM_C_API THREADHANDLE start_standalone_factor_in_new_thread(int argc, vm_char **argv);
16
17 extern std::map<THREADHANDLE, factor_vm *> thread_vms;
18
19 }