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