I would say it's the result of a badly written debug macro, ie there's a function that only prints #IFDEF DEBUG, instead of a function that's only called if DEBUG is defined.
except it takes no parameters, so that'd only work if it's a debug function that examples globals and prints about them.
which is possible, this program is global-heavy