(settings_data.c) Simplify APPEND macro

This commit is contained in:
twinaphex 2014-10-06 19:35:37 +02:00
parent 3a16afc226
commit 1c439c7f2a

View File

@ -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