From 82593890679b64c7c0b09fda77113851429d7442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 20 Oct 2015 10:13:32 +0000 Subject: Omegle: Simplify logging with HANDLE_(ENTRY|SUCCESS|ERROR) macros git-svn-id: http://svn.miranda-ng.org/main/trunk@15580 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols/Omegle/src/client.h') diff --git a/protocols/Omegle/src/client.h b/protocols/Omegle/src/client.h index 5847877133..45aa9375e7 100644 --- a/protocols/Omegle/src/client.h +++ b/protocols/Omegle/src/client.h @@ -30,6 +30,10 @@ along with this program. If not, see . #define STATE_DISCONNECTING 3 // disconnecting from stranger #define STATE_SPY 4 // spy mode (read-only) +#define HANDLE_ENTRY handle_entry(__FUNCTION__) +#define HANDLE_SUCCESS handle_success(__FUNCTION__) +#define HANDLE_ERROR(force_disconnect) handle_error(__FUNCTION__, force_disconnect) + class Omegle_client { public: -- cgit v1.2.3