You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
generic preprocessor-specific exception classes
These are basic python Exception subclasses that can be used to throw more specific errors and exceptions from within the preprocessor. AssertionError is not a good idea.
This commit is contained in:
@@ -302,6 +302,16 @@ chars = {
|
|||||||
"9": 0xFF
|
"9": 0xFF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class PreprocessorException(Exception):
|
||||||
|
"""
|
||||||
|
There was a problem in the preprocessor.
|
||||||
|
"""
|
||||||
|
|
||||||
|
class MacroException(PreprocessorException):
|
||||||
|
"""
|
||||||
|
There was a problem with a macro.
|
||||||
|
"""
|
||||||
|
|
||||||
def separate_comment(l):
|
def separate_comment(l):
|
||||||
"""
|
"""
|
||||||
Separates asm and comments on a single line.
|
Separates asm and comments on a single line.
|
||||||
|
Reference in New Issue
Block a user