]> gitweb.factorcode.org Git - factor.git/blob - vm/run.cpp
Merge branch 'master' into startup
[factor.git] / vm / run.cpp
1 #include "master.hpp"
2
3 namespace factor
4 {
5
6 void factor_vm::primitive_exit()
7 {
8         exit(to_fixnum(dpop()));
9 }
10
11 void factor_vm::primitive_micros()
12 {
13         box_unsigned_8(current_micros());
14 }
15
16 void factor_vm::primitive_sleep()
17 {
18         sleep_micros(to_cell(dpop()));
19 }
20
21 }