diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tuplr.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tuplr.hpp b/src/tuplr.hpp index 058eaa3..03bae10 100644 --- a/src/tuplr.hpp +++ b/src/tuplr.hpp @@ -155,7 +155,7 @@ struct GC { ~GC(); void* alloc(size_t size, Tag tag); void collect(const Roots& roots); - void addRoot(const Object* obj) { if (obj) _roots.push_back(obj); } + void addRoot(const Object* obj) { assert(obj); _roots.push_back(obj); } void lock() { _roots.insert(_roots.end(), _heap.begin(), _heap.end()); } const Roots& roots() const { return _roots; } private: |