From c12aa468a1ffcbefdb3a260917452fbdb0f85bf2 Mon Sep 17 00:00:00 2001 From: Damien Date: Wed, 16 Oct 2013 20:57:49 +0100 Subject: Add SET_ADD opcode to VM. --- py/runtime.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py/runtime.c') diff --git a/py/runtime.c b/py/runtime.c index 0b76df8a5..33a4c95e1 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1305,6 +1305,11 @@ py_obj_t rt_build_set(int n_args, py_obj_t *items) { return o; } +py_obj_t rt_store_set(py_obj_t set, py_obj_t item) { + py_set_lookup(set, item, true); + return set; +} + py_obj_t rt_build_map(int n_args) { py_obj_base_t *o = m_new(py_obj_base_t, 1); o->kind = O_MAP; -- cgit v1.2.3