mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Use concrete types instead of 'auto'.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
This commit is contained in:
parent
cd6ff690d0
commit
f8e97c6c02
@ -99,18 +99,17 @@ typedef void (*mem_try_give_memory_back_callback_t) (mem_try_give_memory_back_se
|
||||
#define MEM_CP_SET_POINTER(cp_value, non_compressed_pointer) \
|
||||
do \
|
||||
{ \
|
||||
auto __temp_pointer = non_compressed_pointer; \
|
||||
non_compressed_pointer = __temp_pointer; \
|
||||
} while (0); \
|
||||
\
|
||||
if (unlikely ((non_compressed_pointer) == NULL)) \
|
||||
{ \
|
||||
(cp_value) = MEM_CP_NULL; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
MEM_CP_SET_NON_NULL_POINTER (cp_value, non_compressed_pointer); \
|
||||
}
|
||||
void *ptr_value = (void *) non_compressed_pointer; \
|
||||
\
|
||||
if (unlikely ((ptr_value) == NULL)) \
|
||||
{ \
|
||||
(cp_value) = MEM_CP_NULL; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
MEM_CP_SET_NON_NULL_POINTER (cp_value, ptr_value); \
|
||||
} \
|
||||
} while (false);
|
||||
|
||||
extern void mem_init (void);
|
||||
extern void mem_finalize (bool);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user