Use macro instead of enum to define MEM_ALLOCATOR for better compatibility (#399)
Co-authored-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
@ -43,12 +43,8 @@
|
|||||||
#define BH_DEBUG 0
|
#define BH_DEBUG 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum {
|
#define MEM_ALLOCATOR_EMS 0
|
||||||
/* Memory allocator ems */
|
#define MEM_ALLOCATOR_TLSF 1
|
||||||
MEM_ALLOCATOR_EMS = 0,
|
|
||||||
/* Memory allocator tlsf */
|
|
||||||
MEM_ALLOCATOR_TLSF
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Default memory allocator */
|
/* Default memory allocator */
|
||||||
#define DEFAULT_MEM_ALLOCATOR MEM_ALLOCATOR_EMS
|
#define DEFAULT_MEM_ALLOCATOR MEM_ALLOCATOR_EMS
|
||||||
|
|||||||
Reference in New Issue
Block a user