X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/e4198053de01dbf5335d9b4187c3f266172b6809..bab37071dd22efb6f6d69d1b54bc69593631af94:/src/micropython.py diff --git a/src/micropython.py b/src/micropython.py index b5af9b3..843d5a5 100755 --- a/src/micropython.py +++ b/src/micropython.py @@ -1,2 +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")