Catch errors in format_defines

This commit is contained in:
Thomas Nagy 2016-04-26 19:38:19 +02:00
parent 8b32d93ec3
commit e77b8dc24b
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 2 additions and 0 deletions

View File

@ -774,6 +774,8 @@ def format_defines(lst):
elif pos > 0:
# all others are assumed to be -DX=Y
ret.append('%s %s' % (y[:pos], y[pos+1:]))
else:
raise ValueError('Invalid define expression %r' % y)
return ret
class c_parser(object):