Neo  0.5.0
Developer Documentation
Neo2D.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 (C) Yannick Pflanzer <neo-engine.de>
3  *
4  * This file is part of Neo2D.
5  *
6  * Neo2D is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Neo2D is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with Neo2D. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * Diese Datei ist Teil von Neo2D.
20  *
21  * Neo2D ist Freie Software: Sie können es unter den Bedingungen
22  * der GNU Lesser General Public License, wie von der Free Software Foundation,
23  * Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren
24  * veröffentlichten Version, weiterverbreiten und/oder modifizieren.
25  *
26  * Neo2D wird in der Hoffnung, dass es nützlich sein wird, aber
27  * OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite
28  * Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
29  * Siehe die GNU Lesser General Public License für weitere Details.
30  *
31  * Sie sollten eine Kopie der GNU Lesser General Public License zusammen mit
32  *diesem
33  * Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
34  */
35 
36 #ifndef __NEO2D_H__
37 #define __NEO2D_H__
38 
39 #ifdef SWIG
40 #define DISOWN(a) %apply SWIGTYPE* DISOWN {a};
41 #else
42 #define DISOWN(a)
43 #endif
44 
45 #ifdef WIN32
46  #ifdef _MSC_VER
47  #pragma warning(disable: 4251)
48  #endif
49 
50  #if defined(NEO2D_DLL)
51  #define NEO2D_EXPORT __declspec( dllexport )
52  #elif defined(NEO_CORE_STATIC)
53  #define NEO2D_EXPORT
54  #else
55  #define NEO2D_EXPORT __declspec( dllimport )
56  #endif
57 
58 #else
59  #define NEO2D_EXPORT
60 #endif
61 
62 #endif