power: Use ARRAY_SIZE macro where possible
Change-Id: Ie47d0e6b91b7bba378b0fdf53a345a021b0c2d48
This commit is contained in:
committed by
Michael Bestas
parent
ba1c2a36fc
commit
d62a558e09
@@ -52,6 +52,8 @@ bool is_expensive_rendering_supported();
|
||||
void set_expensive_rendering(bool enabled);
|
||||
void set_interactive(int on);
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof((x)) / sizeof((x)[0]))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user