diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-20 14:24:37 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-20 14:24:37 -0400 |
| commit | e33aff908b77f43309e61634985c03551ab9cd10 (patch) | |
| tree | 2a220fb46ce838d78e75fdaea0da092200c1031a /builtins/array.h | |
| parent | e79ce52125875e17ac0b460dfff07a8ecca63676 (diff) | |
Inline color file
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtins/array.h b/builtins/array.h index a2c100d5..5ee115ae 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -10,6 +10,8 @@ #include "functions.h" #include "types.h" +extern bool USE_COLOR; + // Convert negative indices to back-indexed without branching: index0 = index + (index < 0)*(len+1)) - 1 #define Array_get(item_type, arr_expr, index_expr, filename, start, end) *({ \ const array_t arr = arr_expr; int64_t index = (int64_t)(index_expr); \ |
