summaryrefslogtreecommitdiff
path: root/uscript/map.h
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-04-17 22:48:52 -0400
committeriamcheeseman <[email protected]>2026-04-17 22:48:52 -0400
commitf328d3b2bea11f6b89bf4b3707205ecd8496b93d (patch)
tree6d3fdb155a7d4c19332f54790b1d6ae89ae0b04f /uscript/map.h
parentde5d3ebdbc674bf8f1e324ee5b43c51af288a286 (diff)
microscript: add maps
Diffstat (limited to 'uscript/map.h')
-rw-r--r--uscript/map.h11
1 files changed, 11 insertions, 0 deletions
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__