Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
CorePlatformDefines.h
1 #ifndef _CORE_PLATFORM_DEFINES_H
2 #define _CORE_PLATFORM_DEFINES_H
3 
4 // **********************************************************************
5 //
6 // ERROR MANAGEMENT
7 //
8 // **********************************************************************
9 
10 
11 // level error 0 is for all error / warning / messages
12 // level error 1 is for error / warning
13 // level error 2 is for error only
14 // level error 3 is for nothing
15 #ifdef _DEBUG
16 #define KIGS_ERROR_LEVEL 0
17 #else //_DEBUG
18 #define KIGS_ERROR_LEVEL 0
19 #endif //_DEBUG
20 
21 #define STOP_ON_ERROR
22 
23 #define KIGS_ERROR_BUFFER_SIZE 4096
24 
25 // **********************************************************************
26 //
27 // STL MANAGEMENT
28 //
29 // **********************************************************************
30 
31 //#define _NO_KSTL_OVERLOADING_
32 #ifndef _NO_KSTL_OVERLOADING_
33 #define _DO_KSTL_OVERLOADING_
34 #endif
35 
36 // **********************************************************************
37 //
38 // MEMORY MANAGEMENT
39 //
40 // **********************************************************************
41 
42 #define _NO_MEMORY_MANAGER_
43 
44 #define MEMORYMANAGEMENT_START
45 #define MEMORYMANAGEMENT_END
46 
47 #define NO_MEMORYMANAGEMENT_START
48 #define NO_MEMORYMANAGEMENT_END
49 
50 
51 // **********************************************************************
52 //
53 // THREAD MANAGEMENT
54 //
55 // **********************************************************************
56 
57 #define SYSTEM_THREAD_RETURN_A_VALUE
58 #ifdef SYSTEM_THREAD_RETURN_A_VALUE
59 typedef void* ThreadReturnType;
60 #else
61 typedef void ThreadReturnType;
62 #endif
63 
64 // **********************************************************************
65 //
66 // RTTI (dynamic cast) MANAGEMENT
67 //
68 // **********************************************************************
69 
70 // NO RTTI on Android
71 //#define RTTI_IS_AVAILABLE
72 
73 
74 
75 // **********************************************************************
76 //
77 // FILE MANAGEMENT
78 //
79 // **********************************************************************
80 
81 #define PLATFORM_FILE MAC_FILE
82 #define Platform_Hiddenfopen IPhonefopen
83 #define Platform_Hiddenfread IPhonefread
84 #define Platform_Hiddenfwrite IPhonefwrite
85 #define Platform_Hiddenftell IPhoneftell
86 #define Platform_Hiddenfseek IPhonefseek
87 #define Platform_Hiddenfflush IPhonefflush
88 #define Platform_Hiddenfclose IPhonefclose
89 #define Platform_CheckState IPhoneCheckState
90 #define Platform_FindFullName IPhoneFindFullName
91 #define Platform_CreateFolderTree IPhoneCreateFolderTree
92 // **********************************************************************
93 //
94 // RANDOM MANAGEMENT
95 //
96 // **********************************************************************
97 
98 #define Platform_rand rand
99 #define Platform_srand srand
100 
101 // **********************************************************************
102 //
103 // MISC
104 //
105 // **********************************************************************
106 
107 #define USE_LIB_PNG
108 #define USE_LIB_JPG
109 
110 #endif //_CORE_PLATFORM_DEFINES_H