mirror of
https://gitlab.com/Scribble/gdlenhanced.git
synced 2026-08-17 14:23:04 -04:00
32 lines
No EOL
366 B
C++
32 lines
No EOL
366 B
C++
|
|
#pragma once
|
|
#include "easylogging++.h"
|
|
|
|
class CKillable
|
|
{
|
|
public:
|
|
CKillable()
|
|
{
|
|
bAlive = TRUE;
|
|
}
|
|
|
|
void Kill(const char *szSource, uint32_t dwLine)
|
|
{
|
|
#ifdef _DEBUG
|
|
if (szSource)
|
|
{
|
|
DEBUG_DATA << "Kill() @" << szSource << ":" << dwLine;
|
|
}
|
|
|
|
#endif
|
|
bAlive = FALSE;
|
|
}
|
|
|
|
BOOL IsAlive()
|
|
{
|
|
return bAlive ? TRUE : FALSE;
|
|
}
|
|
|
|
protected:
|
|
BOOL bAlive;
|
|
}; |