pike.git/src/program.c:5244: Inside #if defined(PIKE_DEBUG)
#ifdef PIKE_DEBUG
if(Pike_compiler->new_program->flags & (PROGRAM_FIXED | PROGRAM_OPTIMIZED))
Pike_fatal("Attempting to add variable to fixed program\n");
if(Pike_compiler->compiler_pass==2)
Pike_fatal("Internal error: Not allowed to add more identifiers during second compiler pass.\n"
"Added identifier: \"%s\"\n", name->str);
#endif
- for(e = 0; state && (e < depth); e++) {
+ for(e = 0; DO_IF_DEBUG_ELSE(state, 1) && (e < depth); e++) {
state = state->previous;
}
#ifdef PIKE_DEBUG
if (!state) {
Pike_fatal("Internal error: External symbol buried too deep.\n");
}
if (state->new_program->num_identifier_references <= refno) {
Pike_fatal("Internal error: Reference out of bounds: %d (max: %d).\n",
refno, state->new_program->num_identifier_references);