diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-14 02:37:56 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-14 02:37:56 -0400 |
| commit | fdc3eadba25aff7894419e483519e73150be33d4 (patch) | |
| tree | ae0bf68e1bfa501fd9010b66d2211b0b1ef59a23 /builtins/array.h | |
| parent | 130ddc8ea04060ec52d9a2fd03da8c9662d32f9c (diff) | |
Array comprehensions
Diffstat (limited to 'builtins/array.h')
| -rw-r--r-- | builtins/array.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/array.h b/builtins/array.h index d36db573..c2c0b8b6 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -46,6 +46,7 @@ $ARRAY_DECREF($arr); \ } +#define Array__insert_value(arr, item_expr, index, type) ({ __typeof(item_expr) $item = item_expr; Array__insert(arr, &$item, index, type); }) void Array__insert(array_t *arr, const void *item, int64_t index, const TypeInfo *type); void Array__insert_all(array_t *arr, array_t to_insert, int64_t index, const TypeInfo *type); void Array__remove(array_t *arr, int64_t index, int64_t count, const TypeInfo *type); |
