previous_object

skylib_fluffos_v3/mudlib/doc/driver/efuns/calls/previous_object · 888 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

.\"returns a pointer to the object(s) that called the current function
.DT
previous_object
$MUDNAME$ driver help
previous_object

.SH Name
.SI 5
previous_object() - returns the object(s) that called the current function
.EI

.SH Synopsis
.SI 5
object previous_object( void );
mixed previous_object( int x );
.EI

.SH Description
.SP 5 5
Returns an object pointer to the object, if any, that called current function.
Note that local function calls do not set previous_object() to the current
object, but leave it unchanged.  If passed a positive integer, it goes back
the given number of previous objects in the calling chain.
previous_object(0) is the same as previous_object(), previous_object(1) is
the previous object's previous_object(), etc.  previous_object(-1) returns
an array containing all of the previous objects.
.EP

.SH See also
.SI 5
call_other(), call_out(), origin()
.EI

Site Stats

Snippets: 1791
Codebases: 571