Branch: Tag:

2020-05-19

2020-05-19 14:45:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Added some more consistency checks to the type checker.

124:   {    TYPE_STACK_DEBUG("discard_top_type");   #ifdef PIKE_DEBUG -  if (!peek_stack_mark()) +  if (pike_type_mark_stack == Pike_compiler->pike_type_mark_stackp) { +  /* Type mark stack empty. */ +  if (type_stack == Pike_compiler->type_stackp)    Pike_fatal("Type stack underflow.\n"); -  +  } else if (!peek_stack_mark()) +  Pike_fatal("Type stack underflow.\n");   #endif    free_type(*(Pike_compiler->type_stackp--));   }