(settings_data.c) Simplify APPEND macro

This commit is contained in:
twinaphex 2014-10-06 15:32:05 +02:00
parent c7d176f02b
commit cd2acaaec6

View File

@ -2128,21 +2128,16 @@ static void general_write_handler(void *data)
if (index == list_size) \
{ \
rarch_setting_t* list_temp = NULL; \
\
list_size *= 2; \
list_temp = (rarch_setting_t*)realloc(list, sizeof(rarch_setting_t) * list_size); \
\
if (list_temp) \
{ \
list = list_temp; \
} \
else \
if (!(list_temp = (rarch_setting_t*)realloc(list, sizeof(rarch_setting_t) * list_size))) \
{ \
RARCH_ERR("Settings list reallocation failed.\n"); \
free(list); \
list = NULL; \
return NULL; \
} \
list = list_temp; \
} \
(list[index++]) = VALUE