• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 
19 #ifndef OSCLCONFIG_MEMORY_CHECK_H_INCLUDED
20 #define OSCLCONFIG_MEMORY_CHECK_H_INCLUDED
21 
22 
23 /**
24 OSCL_BYPASS_MEMMGT macro should be set to 1 if
25 it is desirable to bypass the PV memory management system and just
26 use the native memory management.
27 Otherwise it should be set to 0.
28 */
29 #ifndef OSCL_BYPASS_MEMMGT
30 #error "ERROR: OSCL_BYPASS_MEMMGT has to be defined to either 1 or 0"
31 #endif
32 
33 /**
34 OSCL_HAS_ANSI_MEMORY_FUNCS macro should be set to 1 if
35 the target platform supports ANSI C memory functions (malloc, free, etc).
36 Otherwise it should be set to 0.
37 */
38 #ifndef OSCL_HAS_ANSI_MEMORY_FUNCS
39 #error "ERROR: OSCL_HAS_ANSI_MEMORY_FUNCS has to be defined to either 1 or 0"
40 #endif
41 
42 /**
43 OSCL_HAS_SYMBIAN_MEMORY_FUNCS macro should be set to 1 if
44 the target platform supports Symbian memory functions User::Alloc, User::Free, etc.
45 Otherwise it should be set to 0.
46 */
47 #ifndef OSCL_HAS_SYMBIAN_MEMORY_FUNCS
48 #error "ERROR: OSCL_HAS_SYMBIAN_MEMORY_FUNCS has to be defined to either 1 or 0"
49 #endif
50 
51 /*
52  * OSCL_HAS_HEAP_BASE_SUPPORT macro should be set to 1 for the
53  * platforms that allows inheritance from HeapBase class for
54  * overloading of new/delete operators.
55  */
56 
57 #ifndef OSCL_HAS_HEAP_BASE_SUPPORT
58 #error "ERROR: OSCL_HAS_HEAP_BASE_SUPPORT has to be defined to either 1 or 0."
59 #endif
60 
61 /*
62  * OSCL_HAS_GLOBAL_NEW_DELETE macro should be set to 1 for the
63  * platforms that allows overloading of new/delete operators.
64  */
65 
66 #ifndef OSCL_HAS_GLOBAL_NEW_DELETE
67 #error "ERROR: OSCL_HAS_GLOBAL_NEW_DELETE has to be defined to either 1 or 0."
68 #endif
69 
70 #endif // OSCLCONFIG_MEMORY_CHECK_H_INCLUDED
71 
72 
73