diff options
| author | Damien | 2013-10-16 20:57:49 +0100 |
|---|---|---|
| committer | Damien | 2013-10-16 20:57:49 +0100 |
| commit | c12aa468a1ffcbefdb3a260917452fbdb0f85bf2 (patch) | |
| tree | 77b26b3295244d598904d5d08219a752f24517fd /py/runtime.c | |
| parent | 5fd09668b705dc04b95c6ee5e5c3a8b8758c18e6 (diff) | |
Add SET_ADD opcode to VM.
Diffstat (limited to 'py/runtime.c')
| -rw-r--r-- | py/runtime.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
