summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-15 16:45:41 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-15 16:45:41 +0100
commit2ac4af6946543ae96cf3659468e1b8cabb057f85 (patch)
tree2e19460fec67666259afe529e7f4dff71b6451cf /py/mpconfig.h
parent6be0b0a8ec9a6badc601190ccee876755ce7efb7 (diff)
py: Allow viper to have type annotations.
Viper functions can now be annotated with the type of their arguments and return value. Eg: @micropython.viper def f(x:int) -> int: return x + 1
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 76e02be51..850d05524 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -111,6 +111,9 @@
#define MICROPY_EMIT_INLINE_THUMB (0)
#endif
+// Convenience definition for whether any native emitter is enabled
+#define MICROPY_EMIT_NATIVE (MICROPY_EMIT_X64 || MICROPY_EMIT_THUMB)
+
/*****************************************************************************/
/* Compiler configuration */