summaryrefslogtreecommitdiff
path: root/py/emitglue.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-15 12:15:19 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-15 12:17:09 +1000
commit3751512e9db7ebda9ff06a710038c742ac91126c (patch)
treecf984a0c3ff2c2f64a781208dfaab2bbaeff278d /py/emitglue.h
parentabb536da499498b94d5c3dc7379fd5136d273f2d (diff)
py/emit: Move MP_EMIT_OPT_xxx enums from compile.h to emitglue.h.
Diffstat (limited to 'py/emitglue.h')
-rw-r--r--py/emitglue.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/py/emitglue.h b/py/emitglue.h
index 0830a0d5c..d39a10ee9 100644
--- a/py/emitglue.h
+++ b/py/emitglue.h
@@ -30,6 +30,15 @@
// These variables and functions glue the code emitters to the runtime.
+// These must fit in 8 bits; see scope.h
+enum {
+ MP_EMIT_OPT_NONE,
+ MP_EMIT_OPT_BYTECODE,
+ MP_EMIT_OPT_NATIVE_PYTHON,
+ MP_EMIT_OPT_VIPER,
+ MP_EMIT_OPT_ASM,
+};
+
typedef enum {
MP_CODE_UNUSED,
MP_CODE_RESERVED,