Reject input that contains null characters

Null characters in the middle of strings interact badly with the RGBDS
codebase, which assumes null-terminated strings. There is no reason to
support null characters in input source code, so the simplest way to deal
with null characters is to reject them early.
This commit is contained in:
dbrotz committed 2019-09-09 17:27:56 -07:00
1 parent 17b9838c8f
commit c5e8e4ff83
2 files changed
+10 -2

No files matched your search

+2 -2
View File
@@ -1,2 +1,2 @@
ERROR: null-in-macro.asm(1):
Unterminated MACRO definition.
ERROR: null-in-macro.asm(2):
Found null character