Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
2b7236d2
Commit
2b7236d2
authored
Dec 07, 2015
by
Paul Sokolovsky
Browse files
py: Make it easy to build without MICROPY_PY_BUILTINS_COMPLEX.
Automagically skip related modules.
parent
519cef81
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/modcmath.c
View file @
2b7236d2
...
...
@@ -26,7 +26,7 @@
#include
"py/builtin.h"
#if MICROPY_PY_BUILTINS_FLOAT && MICROPY_PY_CMATH
#if MICROPY_PY_BUILTINS_FLOAT &&
MICROPY_PY_BUILTINS_COMPLEX &&
MICROPY_PY_CMATH
#include
<math.h>
...
...
py/objmodule.c
View file @
2b7236d2
...
...
@@ -150,7 +150,7 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
#if MICROPY_PY_MATH
{
MP_ROM_QSTR
(
MP_QSTR_math
),
MP_ROM_PTR
(
&
mp_module_math
)
},
#endif
#if MICROPY_PY_CMATH
#if
MICROPY_PY_BUILTINS_COMPLEX &&
MICROPY_PY_CMATH
{
MP_ROM_QSTR
(
MP_QSTR_cmath
),
MP_ROM_PTR
(
&
mp_module_cmath
)
},
#endif
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment