From 6f08f8ce51adf06aa64743faa713c6b7a7c2db9a Mon Sep 17 00:00:00 2001 From: Damien Date: Wed, 23 Oct 2013 22:17:26 +0100 Subject: Add working MMA support. --- py/runtime.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'py/runtime.c') diff --git a/py/runtime.c b/py/runtime.c index 9da568876..a1bd67636 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; -- cgit v1.2.3