options: add fallback value to .indir member (#13150)

Required for patch v8.1.1769.
This commit is contained in:
Jan Edmund Lazo
2020-10-24 22:30:04 -04:00
committed by GitHub
parent e37651deb7
commit b59b8dd5b5

View File

@@ -141,9 +141,6 @@ local dump_option = function(i, o)
elseif #o.scope == 1 and o.scope[1] == 'window' then
w(' .var=VAR_WIN')
end
if o.enable_if then
w('#endif')
end
if #o.scope == 1 and o.scope[1] == 'global' then
w(' .indir=PV_NONE')
else
@@ -163,6 +160,12 @@ local dump_option = function(i, o)
defines['PV_' .. varname:sub(3):upper()] = pv_name
w(' .indir=' .. pv_name)
end
if o.enable_if then
w('#else')
w(' .var=NULL')
w(' .indir=PV_NONE')
w('#endif')
end
if o.defaults then
if o.defaults.condition then
w(get_cond(o.defaults.condition))