diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-20 01:48:35 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-20 18:00:23 +0300 |
commit | 3b6f7b95eb487fc927a3bc4644b1941cfbe2612b (patch) | |
tree | e06661e63e4c8bd6f94494281237bc31f4d488eb /py/mpconfig.h | |
parent | 7efbd325bb5ac540b746a594a76185c211963c46 (diff) | |
download | micropython-3b6f7b95eb487fc927a3bc4644b1941cfbe2612b.tar.gz micropython-3b6f7b95eb487fc927a3bc4644b1941cfbe2612b.zip |
py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT.
One thing is wanting to do 1 / 2 and get something else but 0, and quite
another - doing rocket science ;-).
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 93e98c25b6..4a3288a3d1 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -223,6 +223,10 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_FLOAT (0) #endif +#ifndef MICROPY_PY_BUILTINS_COMPLEX +#define MICROPY_PY_BUILTINS_COMPLEX (MICROPY_PY_BUILTINS_FLOAT) +#endif + // Enable features which improve CPython compatibility // but may lead to more code size/memory usage. // TODO: Originally intended as generic category to not |