1 // Logic for handling function type values
6 #include "functiontype.h"
13 Text_t Func$as_text(const void *fn, bool colorize, const TypeInfo_t *type) {
14 Text_t text = Text$from_str(type->FunctionInfo.type_str);
15 if (fn && colorize) text = Text$concat(Text("\x1b[32;1m"), text, Text("\x1b[m"));
20 PUREFUNC bool Func$is_none(const void *obj, const TypeInfo_t *info) {
22 return ((Closure_t *)obj)->fn == NULL;