summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-23 22:17:26 +0100
committerDamien <damien.p.george@gmail.com>2013-10-23 22:17:26 +0100
commit6f08f8ce51adf06aa64743faa713c6b7a7c2db9a (patch)
treec7358bdba5002e50590ddb51ca8b77f825044034 /py/runtime.c
parentd2c1a732e5c04fce58eec5053ad04c3f29da16ba (diff)
downloadmicropython-6f08f8ce51adf06aa64743faa713c6b7a7c2db9a.tar.gz
micropython-6f08f8ce51adf06aa64743faa713c6b7a7c2db9a.zip
Add working MMA support.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c4
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;