From 13fb4abba3fd3cac0d5cb25d3eccddc298220d41 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Tue, 12 Feb 2013 20:37:10 +0000 Subject: introduce throwable_exit for nicer stack unwinding yes, I enjoy abusing features Signed-off-by: Michael Krelin --- (limited to 'src/eyetil.h') diff --git a/src/eyetil.h b/src/eyetil.h index eff2c43..03b9ba8 100644 --- a/src/eyetil.h +++ b/src/eyetil.h @@ -7,6 +7,11 @@ #include #include "openssl/md5.h" +struct throwable_exit { + int rc; + throwable_exit(int rc_) : rc(rc_) { } +}; + class binary_t : public std::vector { public: binary_t() { } -- cgit v0.9.0.2