diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-17 17:11:03 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-17 17:11:03 +0100 |
commit | dbdfee15a1839858b4d12f352b2e34597e6e76e9 (patch) | |
tree | db3d1cae2a4b3c3bdc825a226b818d728100fe8d /py/builtintables.c | |
parent | fb06bfc11ccc2506d27e3f53750771d5c737df2e (diff) |
py: Add cmath module, for complex math. Disabled by default.
Not all functions implemented. Not enabled on pyboard.
Diffstat (limited to 'py/builtintables.c')
-rw-r--r-- | py/builtintables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/builtintables.c b/py/builtintables.c index 6bdae2400..c4c96ed35 100644 --- a/py/builtintables.c +++ b/py/builtintables.c @@ -139,6 +139,9 @@ STATIC const mp_map_elem_t mp_builtin_module_table[] = { #if MICROPY_ENABLE_FLOAT { MP_OBJ_NEW_QSTR(MP_QSTR_math), (mp_obj_t)&mp_module_math }, +#if MICROPY_ENABLE_MOD_CMATH + { MP_OBJ_NEW_QSTR(MP_QSTR_cmath), (mp_obj_t)&mp_module_cmath }, +#endif #endif #if MICROPY_ENABLE_MOD_SYS { MP_OBJ_NEW_QSTR(MP_QSTR_sys), (mp_obj_t)&mp_module_sys }, |