Revert "lists: Add list literal doc example."
[factor.git] / vm / code_roots.hpp
blobba525d0daca715d298e55cfc04fcfd9a4143f11b
1 namespace factor {
3 struct code_root {
4 cell value;
5 bool valid;
6 factor_vm* parent;
8 void push() { parent->code_roots.push_back(this); }
10 code_root(cell value, factor_vm* parent)
11 : value(value), valid(true), parent(parent) {
12 push();
15 ~code_root() {
16 FACTOR_ASSERT(parent->code_roots.back() == this);
17 parent->code_roots.pop_back();