X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/e89ea27c8b1db795949b3538dc10bec6117399ad..c299d6c83d49038ef0da0501bbe2c2866596fbf9:/src/micropython.py diff --git a/src/micropython.py b/src/micropython.py index 620646f..4f88543 100755 --- a/src/micropython.py +++ b/src/micropython.py @@ -1,14 +1,29 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT +""" +`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")