aboutsummaryrefslogtreecommitdiff
path: root/builtins/table.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-08 13:20:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-08 13:20:38 -0400
commitf78cd6357acf7bd8eae6687f2530201acd522329 (patch)
tree1cb980a4dcfbd5bad3c7237a5940a103f9d2d1a3 /builtins/table.h
parentc045c54309dfaa7bb11f97dc3f36c595736eca3b (diff)
Change table removal function to use values instead of references
Diffstat (limited to 'builtins/table.h')
-rw-r--r--builtins/table.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/table.h b/builtins/table.h
index e136f460..36f6d75e 100644
--- a/builtins/table.h
+++ b/builtins/table.h
@@ -38,6 +38,7 @@ void Table$set(table_t *t, const void *key, const void *value, const TypeInfo *t
Table$set(t, &k, &v, type); })
#define Table$reserve_value(t, key_expr, type) ({ __typeof(key_expr) k = key_expr; Table$reserve(t, &k, NULL, type); })
void Table$remove(table_t *t, const void *key, const TypeInfo *type);
+#define Table$remove_value(t, key_expr, type) ({ __typeof(key_expr) k = key_expr; Table$remove(t, &k, type); })
void Table$clear(table_t *t);
table_t Table$sorted(table_t t, const TypeInfo *type);
void Table$mark_copy_on_write(table_t *t);