mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(settings_data.c) Simplify APPEND macro
This commit is contained in:
parent
3a16afc226
commit
1c439c7f2a
@ -2128,17 +2128,8 @@ static void general_write_handler(void *data)
|
||||
if (list_info->index == list_info->size) \
|
||||
{ \
|
||||
list_info->size *= 2; \
|
||||
\
|
||||
if (!(list = (rarch_setting_t*)realloc(list, sizeof(rarch_setting_t) * list_info->size))) \
|
||||
{ \
|
||||
RARCH_ERR("Settings list reallocation failed.\n"); \
|
||||
free(list); \
|
||||
if (list_info) \
|
||||
free(list_info); \
|
||||
list = NULL; \
|
||||
list_info = NULL; \
|
||||
return NULL; \
|
||||
} \
|
||||
goto error; \
|
||||
} \
|
||||
(list[list_info->index++]) = VALUE
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user