X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/a3770186a94117be56a8d9a8038a2d540bd2884c..7c00779e475ef10923dc53fddb20ad23eae484af:/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")