summaryrefslogtreecommitdiff
path: root/preprocessor.py
diff options
context:
space:
mode:
Diffstat (limited to 'preprocessor.py')
-rw-r--r--preprocessor.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/preprocessor.py b/preprocessor.py
index b6bdfbe7d..69121747d 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -302,6 +302,16 @@ chars = {
"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):
"""
Separates asm and comments on a single line.