summaryrefslogtreecommitdiff
path: root/include/inline.h
blob: 3afbb798a28ba316ce690bdda341bbe3e541149d (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*       +------------------------------------+
 *       | Inspire Internet Relay Chat Daemon |
 *       +------------------------------------+
 *
 *  InspIRCd: (C) 2002-2011 InspIRCd Development Team
 * See: http://wiki.inspircd.org/Credits
 *
 * This program is free but copyrighted software; see
 *	    the file COPYING for details.
 *
 * ---------------------------------------------------
 */

inline CrashState::CrashState(const char* Where, const void* Item)
	 : parent(ServerInstance->TraceData), where(Where), item(Item)
{
	ServerInstance->TraceData = this;
}
inline CrashState::~CrashState()
{
	ServerInstance->TraceData = parent;
}