]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/tagged.hpp
vm: rename gc_root to data_root, add code_root to fix a problem where code blocks...
[factor.git] / vm / tagged.hpp
index 77cb6e5287a41abe8aa4a5bc999ba303ebb9354a..e520e326fa95325787f947d0366844552a77ba8f 100755 (executable)
@@ -16,7 +16,8 @@ struct tagged
 {
        cell value_;
 
-       cell type() const {
+       cell type() const
+       {
                return TAG(value_);
        }
 
@@ -33,20 +34,24 @@ struct tagged
                        return type_p(Type::type_number);
        }
 
-       cell value() const {
+       cell value() const
+       {
 #ifdef FACTOR_DEBUG
                assert(type_p());
 #endif
                return value_;
        }
-       Type *untagged() const {
+
+       Type *untagged() const
+       {
 #ifdef FACTOR_DEBUG
                assert(type_p());
 #endif
                return (Type *)(UNTAG(value_));
        }
 
-       Type *untag_check(factor_vm *parent) const {
+       Type *untag_check(factor_vm *parent) const
+       {
                if(!type_p())
                        parent->type_error(Type::type_number,value_);
                return untagged();