mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
fix nested else statements
This commit is contained in:
parent
85333a9f96
commit
25b02984b8
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ def process_source (source_file):
|
|||
if defines.has_key (arg1):
|
||||
condition[-1]=0
|
||||
elif directive == 'else':
|
||||
condition[-1] = not condition[-1]
|
||||
condition[-1] = condition [-2] and not condition[-1]
|
||||
elif directive == 'endif':
|
||||
del condition[-1]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue