]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/booleans.hpp
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / vm / booleans.hpp
index c410f67481b36fc62e8d770a6a1b566f3b8f07cc..6da40cc04cfab77b6e178bfd7710fa60f4fa4c39 100644 (file)
@@ -1,8 +1,6 @@
-namespace factor
-{
+namespace factor {
 
-
-VM_C_API void box_boolean(bool value);
-VM_C_API bool to_boolean(cell value);
+// Cannot allocate
+inline static bool to_boolean(cell value) { return value != false_object; }
 
 }