X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/e4198053de01dbf5335d9b4187c3f266172b6809..9d61af1c25aa8a4e2236f196b6f64409e0984eb4:/src/micropython.py diff --git a/src/micropython.py b/src/micropython.py index b5af9b3..b380dcb 100755 --- a/src/micropython.py +++ b/src/micropython.py @@ -1,2 +1,30 @@ +""" +`micropython` - MicroPython Specific Decorator Functions +======================================================== + +* Author(s): cefn +""" + + +__version__ = "0.0.0-auto.0" +__repo__ = "https://github.com/adafruit/Adafruit_Blinka.git" + + 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")