pike.git/
src/
interpret.c
Branch:
Tag:
Non-build tags
All tags
No tags
2009-08-06
2009-08-06 13:17:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>
d8f4f5d7867e7a01d0639c6ef1a081ba7cc5ea8e (
13
lines) (+
9
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Improved diagnostics for apply_external() on destructed objects.
Rev: src/interpret.c:1.413
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: interpret.c,v 1.
412
2009/
04
/
01
20
:
41
:
32
mast
Exp $
+
|| $Id: interpret.c,v 1.
413
2009/
08
/
06
13
:
17
:
50
grubba
Exp $
*/ #include "global.h"
2655:
loc.o = Pike_fp->current_object; loc.parent_identifier = Pike_fp->fun;
-
if (loc.o->prog)
+
if (loc.o->prog)
{
loc.inherit = INHERIT_FROM_INT(loc.o->prog, loc.parent_identifier); find_external_context(&loc, depth); apply_low(loc.o, fun + loc.inherit->identifier_level, args);
-
+
} else {
+
PIKE_ERROR("destructed object", "Apply on parent of destructed object.\n",
+
Pike_sp, args);
}
-
+
}
#ifdef PIKE_DEBUG void slow_check_stack(void)