summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/definitions.h
blob: 7f8f8a72223cf8e721ffd780467d21f69a9e58a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#if !defined(DEFINITIONS_H)
#define DEFINITIONS_H

#define FLAG_CONTAINS(x,y)      ( ( x & y ) == y )
#define REMOVE_FLAG(x,y)        ( x = ( x & ~y ))

#define CODE_BLOCK_CATCH_ALL \
		    catch (WAException& e) { debugLogA("Exception: %s", e.what()); \
        } catch (exception& e) { debugLogA("Exception: %s", e.what()); \
        } catch (...) { debugLogA("Unknown exception"); }

#define NIIF_INTERN_TCHAR NIIF_INTERN_UNICODE

#endif