Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/zombie-check.hpp"
Automatic lifecycle tracker, to produce an alarm when accessing objects after deletion.
Definition at line 50 of file zombie-check.hpp.
Public Member Functions | |
ZombieCheck (string id) | |
install a zombie check, tagged with the given id. More... | |
operator bool () const | |
void | operator() () const |
Private Member Functions | |
string | buildDiagnosticMessage () const |
Private Attributes | |
bool | deceased_ = false |
char | zombieID_ [42] {} |
|
inline |
install a zombie check, tagged with the given id.
When invoked after death, the raised error::Fatal includes this ID in the diagnostic message.
Definition at line 62 of file zombie-check.hpp.