diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-24 16:18:21 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-24 16:18:21 -0500 |
| commit | 1e3fb8a2c0cca385d65c52679411b118b5fb4641 (patch) | |
| tree | e8e7ae5b4a8b4f39ed867c238f1a05494b6a50ac /stdlib/optionals.h | |
| parent | 0e10313d64f54dd587ebbcd5f413bd999333c911 (diff) | |
Rename "NULL" to "NONE"
Diffstat (limited to 'stdlib/optionals.h')
| -rw-r--r-- | stdlib/optionals.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/optionals.h b/stdlib/optionals.h index b5326479..7d52375b 100644 --- a/stdlib/optionals.h +++ b/stdlib/optionals.h @@ -16,13 +16,13 @@ #define OptionalText_t Text_t #define OptionalClosure_t Closure_t -#define NULL_ARRAY ((Array_t){.length=-1}) -#define NULL_BOOL ((OptionalBool_t)2) -#define NULL_INT ((OptionalInt_t){.small=0}) -#define NULL_TABLE ((OptionalTable_t){.entries.length=-1}) -#define NULL_CLOSURE ((OptionalClosure_t){.fn=NULL}) -#define NULL_TEXT ((OptionalText_t){.length=-1}) -#define NULL_MOMENT ((OptionalMoment_t){.tv_usec=-1}) +#define NONE_ARRAY ((Array_t){.length=-1}) +#define NONE_BOOL ((OptionalBool_t)2) +#define NONE_INT ((OptionalInt_t){.small=0}) +#define NONE_TABLE ((OptionalTable_t){.entries.length=-1}) +#define NONE_CLOSURE ((OptionalClosure_t){.fn=NULL}) +#define NONE_TEXT ((OptionalText_t){.length=-1}) +#define NONE_MOMENT ((OptionalMoment_t){.tv_usec=-1}) PUREFUNC bool is_null(const void *obj, const TypeInfo_t *non_optional_type); Text_t Optional$as_text(const void *obj, bool colorize, const TypeInfo_t *type); |
