pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-07-14
2004-07-14 13:57:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>
22ea1f3aa9206c736ac4da7f094956c781850526 (
13
lines) (+
10
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
master() may now return UNDEFINED.
Rev: src/builtin_functions.c:1.564
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.
563
2004/07/
08
13:
22
:
42
marcus
Exp $
+
|| $Id: builtin_functions.c,v 1.
564
2004/07/
14
13:
57
:
29
grubba
Exp $
*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
563
2004/07/
08
13:
22
:
42
marcus
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
564
2004/07/
14
13:
57
:
29
grubba
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
6311:
*! *! Return the current master object. *!
+
*! @note
+
*! May return @[UNDEFINED] if no master has been loaded yet.
+
*!
*! @seealso *! @[replace_master()] */ PMOD_EXPORT void f_master(INT32 args) {
-
+
struct object *o;
pop_n_elems(args);
-
ref_push_object(
master
()
)
;
+
o = get_master();
+
if (o)
ref_push_object(
o);
+
else push_undefined
();
} #ifdef HAVE_SYS_TIME_H