X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/738d6d910c2dfa9763c3f33ddf4692c4823e136f..59ca80b8c43190a15d959df8e55a3023aa2f5f6d:/src/micropython.py?ds=sidebyside diff --git a/src/micropython.py b/src/micropython.py index 620646f..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): - raise SyntaxError("invalid micropython decorator") \ No newline at end of file + "User is attempting to use an inline assembler" + raise SyntaxError("invalid micropython decorator")