config file: write commented undef lines same as autoconf

For easier diffing to see if anything is missing when porting.
pull/444/head
Tim-Philipp Müller 9 years ago
parent 79537b54db
commit 48a2b201ea
  1. 2
      mesonbuild/mesonlib.py

@ -227,7 +227,7 @@ def do_mesondefine(line, confdata):
try:
v = confdata.get(varname)
except KeyError:
return '/* undef %s */\n' % varname
return '/* #undef %s */\n' % varname
if isinstance(v, bool):
if v:
return '#define %s\n' % varname

Loading…
Cancel
Save