mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
menu_list_flush_stack_type - simplification
This commit is contained in:
parent
36d3bae7ba
commit
94d7d7d1aa
@ -126,13 +126,11 @@ menu_file_list_cbs_t *menu_list_get_last_stack_actiondata(const menu_list_t *lis
|
||||
return (menu_file_list_cbs_t*)file_list_get_last_actiondata(list->menu_stack);
|
||||
}
|
||||
|
||||
static int menu_list_flush_stack_type(
|
||||
static INLINE int menu_list_flush_stack_type(
|
||||
const char *needle, const char *label,
|
||||
unsigned type, unsigned final_type)
|
||||
{
|
||||
if (needle)
|
||||
return strcmp(needle, label);
|
||||
return type != final_type;
|
||||
return needle ? strcmp(needle, label) : (type != final_type);
|
||||
}
|
||||
|
||||
void menu_list_flush_stack(menu_list_t *list,
|
||||
|
Loading…
Reference in New Issue
Block a user