From d5793cdf4d29b6c310612564f452f9f8a225e2eb Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 30 Jan 2024 12:22:40 -0500 Subject: [PATCH] MT#59069 add typed HT remove_all() Change-Id: Idb023db5613229f50dd8f5218c209be154a56f78 --- lib/containers.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/containers.h b/lib/containers.h index b8bf799ab..fc9e8a74a 100644 --- a/lib/containers.h +++ b/lib/containers.h @@ -58,6 +58,10 @@ __r; \ }) +#define t_hash_table_remove_all(h) ({ \ + g_hash_table_remove_all((h).ht); \ + }) + #define t_hash_table_steal_extended(h, k, kp, vp) ({ \ __typeof__((h).__key) __k = k; \ __typeof__(&(h).__key) __kp = kp; \