]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/booleans.hpp
audio.engine.test: cleanup using
[factor.git] / vm / booleans.hpp
index 7634afa02cf6d4974fba78781aac30436166f78d..6da40cc04cfab77b6e178bfd7710fa60f4fa4c39 100644 (file)
@@ -1,7 +1,6 @@
-inline static CELL tag_boolean(CELL untagged)
-{
-       return (untagged ? T : F);
-}
+namespace factor {
+
+// Cannot allocate
+inline static bool to_boolean(cell value) { return value != false_object; }
 
-VM_C_API void box_boolean(bool value);
-VM_C_API bool to_boolean(CELL value);
+}