]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Add stubs for micropython.natve, viper, and asm_thumb
authorThea Flowers <me@thea.codes>
Tue, 26 Nov 2019 02:07:14 +0000 (18:07 -0800)
committerThea Flowers <me@thea.codes>
Tue, 26 Nov 2019 02:07:14 +0000 (18:07 -0800)
src/micropython.py

index b5af9b39a5c5627d735dfdd3ecf0dcd756907fdd..620646f85882ec03383e00cf33a6aa5a2a955488 100755 (executable)
@@ -1,2 +1,14 @@
 def const(x):
     return x
+
+
+def native(f):
+    return f
+
+
+def viper(f):
+    raise SyntaxError("invalid micropython decorator")
+
+
+def asm_thumb(f):
+    raise SyntaxError("invalid micropython decorator")
\ No newline at end of file