summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-25 21:59:14 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-25 22:07:25 +0100
commitc9fc62072330421dbbcfa316569b51601a7f0349 (patch)
treed7044bdc0e84396822fea1e24f4220d8917ca847 /py/mpconfig.h
parente5a3759ff5478392f914ba7a7346da60d9735bf4 (diff)
py: Implement compile builtin, enabled only on unix port.
This should be pretty compliant with CPython, except perhaps for some corner cases to do with globals/locals context. Addresses issue #879.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index d24e6b23b..b9e87fc01 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -312,6 +312,11 @@ typedef double mp_float_t;
#define MICROPY_PY_BUILTINS_PROPERTY (1)
#endif
+// Whether to support compile function
+#ifndef MICROPY_PY_BUILTINS_COMPILE
+#define MICROPY_PY_BUILTINS_COMPILE (0)
+#endif
+
// Whether to set __file__ for imported modules
#ifndef MICROPY_PY___FILE__
#define MICROPY_PY___FILE__ (1)