summaryrefslogtreecommitdiffstatshomepage
path: root/py/qstrdefs.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/qstrdefs.h
parent6be0b0a8ec9a6badc601190ccee876755ce7efb7 (diff)
downloadmicropython-2ac4af6946543ae96cf3659468e1b8cabb057f85.tar.gz
micropython-2ac4af6946543ae96cf3659468e1b8cabb057f85.zip
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/qstrdefs.h')
-rw-r--r--py/qstrdefs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index e154faf559..c83b54c241 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -67,9 +67,13 @@ Q(__lt__)
Q(micropython)
Q(bytecode)
+Q(const)
+
+#if MICROPY_EMIT_X64 || MICROPY_EMIT_THUMB
Q(native)
Q(viper)
-Q(const)
+Q(uint)
+#endif
#if MICROPY_EMIT_INLINE_THUMB
Q(asm_thumb)