blob: 750e24c3fd05cf185ef063d1ca8e6223238166f5 [file] [log] [blame]
Zesstra5481d492021-04-08 20:07:06 +02001OPTIONAL
MG Mud User88f12472016-06-24 23:31:02 +02002SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02003 void swap(object obj, int flags = 0)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 Swap out an object. This efun is only used for system internal
7 debugging and can cause a crash.
Zesstra5481d492021-04-08 20:07:06 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 <flags> can be given to specify which parts of <obj> to swap.
10 It is a bitmask of the following:
Zesstra5481d492021-04-08 20:07:06 +020011
Zesstra715ec202025-07-09 22:18:31 +020012 1: Swap program
13 2: Swap variables
Zesstra5481d492021-04-08 20:07:06 +020014
Zesstra715ec202025-07-09 22:18:31 +020015 The default (also when 0 given) is both (3).
Zesstra5481d492021-04-08 20:07:06 +020016
Zesstra715ec202025-07-09 22:18:31 +020017HISTORY
18 LDMud 3.6.4 introduced the second argument.