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