pike.git/
src/
interpret_functions.h
Branch:
Tag:
Non-build tags
All tags
No tags
2012-06-25
2012-06-25 00:00:06 by Per Hedbor <ph@opera.com>
c1abb5ab8d944d5bfc037728712fb4972d9b4f00 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Only check for iterator < 0 in F_FOREACH if debug is enabled.
1617:
PIKE_ERROR("foreach", "Bad argument 1.\n", Pike_sp-3, 1); if(Pike_sp[-1].u.integer < Pike_sp[-4].u.array->size) {
-
if(Pike_sp[-1].u.integer < 0)
+
DO_IF_DEBUG(
if(Pike_sp[-1].u.integer < 0)
/* Isn't this an internal compiler error? /mast */
-
Pike_error("Foreach loop variable is negative!\n");
+
Pike_error("Foreach loop variable is negative!\n")
)
;
assign_lvalue(Pike_sp-3, Pike_sp[-4].u.array->item + Pike_sp[-1].u.integer); DO_BRANCH(); Pike_sp[-1].u.integer++;