ssa: map delete, map eql nil

This commit is contained in:
visualfc
2024-06-29 21:35:20 +08:00
parent 28ebce6b65
commit 439e377111
7 changed files with 239 additions and 83 deletions

View File

@@ -57,6 +57,14 @@ func MapAccess2(t *maptype, h *hmap, key unsafe.Pointer) (unsafe.Pointer, bool)
return mapaccess2(t, h, key)
}
func MapDelete(t *maptype, h *hmap, key unsafe.Pointer) {
mapdelete(t, h, key)
}
func MapClear(t *maptype, h *hmap) {
mapclear(t, h)
}
func NewMapIter(t *maptype, h *hmap) *hiter {
var it hiter
mapiterinit(t, h, &it)