factor/vm/booleans.hpp

13 lines
179 B
C++
Raw Normal View History

2009-05-04 02:46:13 -04:00
namespace factor
{
2009-05-04 05:50:24 -04:00
inline static cell tag_boolean(cell untagged)
2009-05-02 05:04:19 -04:00
{
return (untagged ? T : F);
2009-05-02 05:04:19 -04:00
}
VM_C_API void box_boolean(bool value);
2009-05-04 05:50:24 -04:00
VM_C_API bool to_boolean(cell value);
2009-05-04 02:46:13 -04:00
}