Skip to content

Commit a0299c4

Browse files
author
Jotham Gates
committed
Fixed issue with macros being substituted uncommented out
1 parent 756e1af commit a0299c4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

picaxepreprocess.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ def progparse(curfilename, called_from_line=None, called_from_file=None):
341341
preprocessor_info(params)
342342
break
343343
line = replace(key, macrovars[0], line)
344+
345+
# # Make sure each line is commented out in a multiline macro if the surrounding code should be commented out
346+
if not is_if_active(0):
347+
line = line.replace("\n", "\n; ")
348+
344349
preprocessor_info(macrovars)
345350
for num, name in macrovars.items():
346351
if name in line:

0 commit comments

Comments
 (0)