diff options
Diffstat (limited to 'stdlib')
| -rw-r--r-- | stdlib/bytes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stdlib/bytes.h b/stdlib/bytes.h index 2a92f658..f073979f 100644 --- a/stdlib/bytes.h +++ b/stdlib/bytes.h @@ -13,6 +13,16 @@ PUREFUNC Text_t Byte$as_text(const Byte_t *b, bool colorize, const TypeInfo_t *type); +#define Byte_to_Int64(b, _) ((Int64_t)(b)) +#define Byte_to_Int32(b, _) ((Int32_t)(b)) +#define Byte_to_Int16(b, _) ((Int16_t)(b)) +#define Byte_to_Int8(b, _) ((Int8_t)(b)) + +#define Int64_to_Byte(b, _) ((Byte_t)(b)) +#define Int32_to_Byte(b, _) ((Byte_t)(b)) +#define Int16_to_Byte(b, _) ((Byte_t)(b)) +#define Int8_to_Byte(b, _) ((Byte_t)(b)) + extern const Byte_t Byte$min; extern const Byte_t Byte$max; |
