diff options
author | Damien <damien.p.george@gmail.com> | 2013-10-23 22:17:26 +0100 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-10-23 22:17:26 +0100 |
commit | 6f08f8ce51adf06aa64743faa713c6b7a7c2db9a (patch) | |
tree | c7358bdba5002e50590ddb51ca8b77f825044034 /py/runtime.c | |
parent | d2c1a732e5c04fce58eec5053ad04c3f29da16ba (diff) | |
download | micropython-6f08f8ce51adf06aa64743faa713c6b7a7c2db9a.tar.gz micropython-6f08f8ce51adf06aa64743faa713c6b7a7c2db9a.zip |
Add working MMA support.
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c index 9da5688763..a1bd676367 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -319,6 +319,10 @@ static bool fit_small_int(py_small_int_t o) { return true; } +py_obj_t py_obj_new_int(int value) { + return TO_SMALL_INT(value); +} + py_obj_t py_obj_new_const(const char *id) { py_obj_base_t *o = m_new(py_obj_base_t, 1); o->kind = O_CONST; |