pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2020-05-19
2020-05-19 14:45:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>
1d54a1e51167f1658d9d8b701b1f3dc335b0da26 (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
master
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--)); }