3 // Boolean functions/type info
11 #define yes (Bool_t) true
12 #define no (Bool_t) false
14 PUREFUNC Text_t Bool$as_text(const void *b, bool colorize, const TypeInfo_t *type);
15 OptionalBool_t Bool$parse(Text_t text, Text_t *remainder);
16 MACROLIKE Bool_t Bool$from_int(Int_t i) {
17 return (i.small != 0);
19 MACROLIKE Bool_t Bool$from_int64(Int64_t i) {
22 MACROLIKE Bool_t Bool$from_int32(Int32_t i) {
25 MACROLIKE Bool_t Bool$from_int16(Int16_t i) {
28 MACROLIKE Bool_t Bool$from_int8(Int8_t i) {
31 MACROLIKE Bool_t Bool$from_byte(uint8_t b) {
35 extern const TypeInfo_t Bool$info;