delete for maps
This commit is contained in:
1 parent
758dd9ba16
commit
3cec2550d9
5 files changed
+60
-16
No files matched your search
+1
-1
@@ -633,7 +633,7 @@ __dynamic_map_add_entry :: proc(using h: __Map_Header, key: __Map_Key) -> int {
|
||||
}
|
||||
|
||||
|
||||
__dynamic_map_remove :: proc(using h: __Map_Header, key: __Map_Key) {
|
||||
__dynamic_map_delete :: proc(using h: __Map_Header, key: __Map_Key) {
|
||||
fr := __dynamic_map_find(h, key);
|
||||
if fr.entry_index >= 0 {
|
||||
__dynamic_map_erase(h, fr);
|
||||
|
||||
Reference in new issue
Block a user