]> gitweb.factorcode.org Git - factor.git/blob - vm/code_heap.hpp
Merge branch 'master' of git://factorcode.org/git/factor into bleeding_edge
[factor.git] / vm / code_heap.hpp
1 namespace factor
2 {
3
4 inline void factor_vm::check_code_pointer(cell ptr)
5 {
6 #ifdef FACTOR_DEBUG
7         assert(in_code_heap_p(ptr));
8 #endif
9 }
10
11 struct word_updater {
12         factor_vm *myvm;
13
14         explicit word_updater(factor_vm *myvm_) : myvm(myvm_) {}
15         void operator()(code_block *compiled)
16         {
17                 myvm->update_word_references(compiled);
18         }
19 };
20
21 }