Browse Source

MT#59069 add typed HT remove_all()

Change-Id: Idb023db5613229f50dd8f5218c209be154a56f78
pull/1802/head
Richard Fuchs 2 years ago
parent
commit
d5793cdf4d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      lib/containers.h

+ 4
- 0
lib/containers.h View File

@ -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; \


Loading…
Cancel
Save