]> Repositories - Adafruit_Blinka-hackapet.git/blob - src/micropython.py
Remove testing code
[Adafruit_Blinka-hackapet.git] / src / micropython.py
1 """
2 `micropython` - MicroPython Specific Decorator Functions
3 =================================================
4
5 * Author(s): cefn
6 """
7
8
9 __version__ = "0.0.0-auto.0"
10 __repo__ = "https://github.com/adafruit/Adafruit_Blinka.git"
11
12
13 def const(x):
14     "Emulate making a constant"
15     return x
16
17
18 def native(f):
19     "Emulate making a native"
20     return f
21
22
23 def viper(f):
24     "User is attempting to use a viper code emitter"
25     raise SyntaxError("invalid micropython decorator")
26
27
28 def asm_thumb(f):
29     "User is attempting to use an inline assembler"
30     raise SyntaxError("invalid micropython decorator")