diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-05 14:40:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-05 14:40:28 -0400 |
| commit | c045c54309dfaa7bb11f97dc3f36c595736eca3b (patch) | |
| tree | 52c6b1602adf5d334be6e913273b609d1e88eaa4 /builtins/integers.h | |
| parent | 8e2156ac483e7fa0f2007188b670eb11f2a44720 (diff) | |
Add a Range datatype with creation methods like `5:to(10)` and
modification methods like `range:by(2)` or `range:reversed()`
Diffstat (limited to 'builtins/integers.h')
| -rw-r--r-- | builtins/integers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/integers.h b/builtins/integers.h index 2c638a4a..4ab30490 100644 --- a/builtins/integers.h +++ b/builtins/integers.h @@ -28,6 +28,7 @@ CORD type_name ## $octal(c_type i, int64_t digits, bool prefix); \ array_t type_name ## $bits(c_type x); \ c_type type_name ## $random(c_type min, c_type max); \ + Range_t type_name ## $to(c_type from, c_type to); \ c_type type_name ## $from_text(CORD text, CORD *the_rest); \ extern const c_type type_name ## $min, type_name##$max; \ extern const TypeInfo $ ## type_name; |
