base: add armpack_map_set_i32

This commit is contained in:
luboslenco
2026-05-13 17:11:34 +02:00
parent 3b92ba3bab
commit cf743de29b
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -874,3 +874,10 @@ int armpack_map_get_i32(any_map_t *map, char *key) {
}
return ps.type == 1 ? ps.i : (int)ps.f;
}
void armpack_map_set_i32(any_map_t *map, char *key, int value) {
ptr_storage_t s;
s.i = value;
s.type = 1;
any_map_set(map, key, s.p);
}