pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2001-09-28
2001-09-28 01:54:49 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
a241e056928fd5445f036a92d9784fd3a9a1a2e9 (
12
lines) (+
8
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
bugfix
#1
for automap: better error messags
Rev: src/builtin.cmod:1.68
1:
/* -*- c -*-
-
* $Id: builtin.cmod,v 1.
67
2001/09/28
00:
01:
43
hubbe Exp $
+
* $Id: builtin.cmod,v 1.
68
2001/09/28 01:
54:49
hubbe Exp $
*/ #include "global.h"
1982:
real_args[e].u.object->prog == automap_marker_program && OBJ2_AUTOMAP_MARKER(real_args[e].u.object)->depth >= d) {
-
#ifdef PIKE_DEBUG
+
if(tmpargs[e].type != T_ARRAY)
-
fatal
("
Arg
in
automap
is
not
array
!
\n");
-
#endif
+
index_error
("
__automap__",
+
Pike_sp-args,
+
args,
+
tmpargs,
+
NULL,
+
"Automap on non-
array
.
\n");
tmp=tmpargs[e].u.array->size; if(tmp < size) size=tmp;