mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
option_select HASFLAG guard macro expansion with parens
cheap insurance Change-Id: I8b1fccfda55350a2197cbc261b06a8c8c9dd9c65
This commit is contained in:
parent
e8a17b1282
commit
3c9be11411
1 changed files with 2 additions and 2 deletions
|
|
@ -36,8 +36,8 @@
|
|||
#include "menu.h"
|
||||
#include "quickscreen.h"
|
||||
|
||||
/* HASFLAG compares value to a (SINGLE) flag returns true if set, false otherwise */
|
||||
#define HASFLAG(settings_list, flag) ((settings_list->flags & flag) == flag)
|
||||
/* HASFLAG compares value to flags returns true if set, false otherwise */
|
||||
#define HASFLAG(settings_list, flag) ((settings_list->flags & (flag)) == (flag))
|
||||
|
||||
static int selection_to_val(const struct settings_list *setting, int selection);
|
||||
int option_value_as_int(const struct settings_list *setting)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue