scripts/specialize-patch: Add more debugging output

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6512 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-09-17 20:34:50 +00:00
parent f1df6a389b
commit bd19ba30fd

View File

@@ -374,9 +374,12 @@ function process_preprocessor_statement(evaluated, condition) {
if (condition)
{
output = 1
if (debug)
printf "/* debug specialize-patch: (g1a) if_nesting_level = %d */\n", \
if_nesting_level
for (i = if_nesting_level; i >= 0; i--) {
if (debug)
printf "/* debug specialize-patch: (g1) %s: decision[%d] = %s */\n", \
printf "/* debug specialize-patch: (g1b) %s: decision[%d] = %s */\n", \
evaluated, i, decision[i]
output = output && decision[i] != "+#if 0" && decision[i] != "+#elif 0"
}