pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-05-09
2004-05-09 19:44:59 by Martin Nilsson <mani@lysator.liu.se>
d8e90a290f2cd75cc6c55646de0de417ad3fb9ca (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed bug in f_exit
Rev: src/builtin_functions.c:1.550
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: builtin_functions.c,v 1.
549
2004/05/
02
21
:
35
:
54
nilsson Exp $
+
|| $Id: builtin_functions.c,v 1.
550
2004/05/
09
19
:
44
:
59
nilsson Exp $
*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
549
2004/05/
02
21
:
35
:
54
nilsson Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
550
2004/05/
09
19
:
44
:
59
nilsson Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
2164:
if(in_exit) Pike_error("exit already called!\n"); in_exit=1;
-
if(args>1)
+
if(args>1
&& Pike_sp[1-args].type==T_STRING
)
{
f_werror(args-1);
-
+
args=1;
+
}
assign_svalue(&throw_value, Pike_sp-args); throw_severity=THROW_EXIT;