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/mpconfig.h | |
| 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/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index f7ebdabbd..43c931cd6 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -110,6 +110,16 @@ typedef double mp_float_t; #define MICROPY_ENABLE_FLOAT (0) #endif +// Whether to provide "math" module +#ifndef MICROPY_ENABLE_MOD_MATH +#define MICROPY_ENABLE_MOD_MATH (1) +#endif + +// Whether to provide "cmath" module +#ifndef MICROPY_ENABLE_MOD_CMATH +#define MICROPY_ENABLE_MOD_CMATH (0) +#endif + // Whether to provide "io" module #ifndef MICROPY_ENABLE_MOD_IO #define MICROPY_ENABLE_MOD_IO (1) |
