diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-10-20 10:13:32 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-10-20 10:13:32 +0000 |
commit | 82593890679b64c7c0b09fda77113851429d7442 (patch) | |
tree | bfb603711ed1b90fd5d8212aeeff2f86e1a7c183 /protocols/Omegle/src/client.h | |
parent | bdbdf8d3391d2da3df0d4eeabac41fa73aa821fa (diff) |
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
Diffstat (limited to 'protocols/Omegle/src/client.h')
-rw-r--r-- | protocols/Omegle/src/client.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. #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:
|