From f328d3b2bea11f6b89bf4b3707205ecd8496b93d Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Fri, 17 Apr 2026 22:48:52 -0400 Subject: microscript: add maps --- uscript/map.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 uscript/map.h (limited to 'uscript/map.h') diff --git a/uscript/map.h b/uscript/map.h new file mode 100644 index 0000000..83ff09e --- /dev/null +++ b/uscript/map.h @@ -0,0 +1,11 @@ +#ifndef __USCRIPT_MAP_H__ +#define __USCRIPT_MAP_H__ + +#include "common.h" +#include "val.h" + +void map_set_value(struct us_map *map, struct us_val k, struct us_val v); +// returns false if it could not find the key +bool map_get_value(struct us_map *map, struct us_val k, struct us_val *v); + +#endif // __USCRIPT_MAP_H__ -- cgit v1.3-2-g0d8e