X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/a79e37b2729f77faf00545062fc4a8ded1a6eb97..ec3ddd9f3e7a2e6f7114ba2f74448198134b3672:/src/micropython.py diff --git a/src/micropython.py b/src/micropython.py index 6d5c4cd..5f369e3 100755 --- a/src/micropython.py +++ b/src/micropython.py @@ -1,14 +1,26 @@ +""" +`micropython` - MicroPython Specific Decorator Functions +================================================= + +* Author(s): cefn +""" + + def const(x): + "Emulate making a constant" return x def native(f): + "Emulate making a native" return f def viper(f): + "User is attempting to use a viper code emitter" raise SyntaxError("invalid micropython decorator") def asm_thumb(f): + "User is attempting to use an inline assembler" raise SyntaxError("invalid micropython decorator")