X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/09422b62c65b439c46f0f15178f541ea30e88423..9d61af1c25aa8a4e2236f196b6f64409e0984eb4:/src/micropython.py diff --git a/src/micropython.py b/src/micropython.py old mode 100644 new mode 100755 index 7aaaca6..b380dcb --- a/src/micropython.py +++ b/src/micropython.py @@ -1,3 +1,30 @@ -class const: - def __new__(self, x): - return x +""" +`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")