YAPOG  0.0.1
Yet Another Pokemon Online Game
Macros.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_MACROS_HPP
2 # define YAPOG_MACROS_HPP
3 
4 # ifndef YAPOG_TRUE
5 # define YAPOG_TRUE 1
6 # endif // YAPOG_TRUE
7 
8 # ifndef YAPOG_FALSE
9 # define YAPOG_FALSE 0
10 # endif // YAPOG_FALSE
11 
13 # define DISALLOW_COPY(TYPE) \
14  private: \
15  TYPE (const TYPE&); \
16  TYPE& operator= (const TYPE&)
17 
18 # define DISALLOW_ASSIGN(TYPE) \
19  private: \
20  TYPE& operator= (const TYPE&)
21 
22 # ifdef _WIN32
23 # define YAPOG_WIN
24 # else
25 # define YAPOG_LINUX
26 # endif // _MSC_VER
27 
29 # ifdef YAPOG_WIN
30 # define YAPOG_LIB_EXPORT __declspec(dllexport)
31 # define YAPOG_LIB_IMPORT __declspec(dllimport)
32 # ifdef DLLEXPORT
33 # define YAPOG_LIB YAPOG_LIB_EXPORT
34 # else
35 # define YAPOG_LIB YAPOG_LIB_IMPORT
36 # endif // DLLEXPORT
37 # else
38 # define YAPOG_LIB
39 # endif // YAPOG_WIN
40 
41 # ifdef YAPOG_WIN
42 # pragma warning(disable : 4251)
43 # pragma warning(disable : 4275)
44 # endif
45 
46 # define YAPOG_MOVE_PREDICTION YAPOG_FALSE
47 
48 // Temporary
49 #include <iostream>
50 
51 #endif // YAPOG_MACROS_HPP