X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ffatal.hpp;h=f0ee08131614f3ee3dc8d8b1ff9bce0eeae1b024;hb=b5a4a113c48e7899223de67cfe043b886a1736ac;hp=54f672b652a8808973de15800def96a430e8d009;hpb=8da5675f446c52fa0410edeb8d94ad18201b004b;p=m6w6%2Flibmemcached diff --git a/libtest/fatal.hpp b/libtest/fatal.hpp index 54f672b6..f0ee0813 100644 --- a/libtest/fatal.hpp +++ b/libtest/fatal.hpp @@ -108,10 +108,28 @@ public: static uint32_t disabled_counter(); static void increment_disabled_counter(); + int line() + { + return _line; + } + + const char* file() + { + return _file; + } + + const char* func() + { + return _func; + } + private: char _error_message[BUFSIZ]; in_port_t _port; char _instance[1024]; + int _line; + const char* _file; + const char* _func; };