So I don't have time to make this PR, but I can publish what needs to be changed:
Navigate to line 3182 in the file lpcompiler
change the FDefine and FBaseDefines separators to something that wont conflict with any code, including that we need multiline defines to work, so lineending is changed as well.
See the comments, that's what I added. Now due to the horrible way it's designed, there exists a chance strings containing one of the above characters could break it, that I actually dont know. But who the fuck write #1 and #2 and #3 to a freaking string.. That said, TStringList should probably just not be used for this.
So I don't have time to make this PR, but I can publish what needs to be changed:
Navigate to line 3182 in the file lpcompiler change the FDefine and FBaseDefines separators to something that wont conflict with any code, including that we need multiline defines to work, so lineending is changed as well.
See the comments, that's what I added. Now due to the horrible way it's designed, there exists a chance strings containing one of the above characters could break it, that I actually dont know. But who the fuck write
#1
and#2
and#3
to a freaking string.. That said, TStringList should probably just not be used for this.