mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 16:03:23 -05:00
[misc] Add NTOSTR() macro
Get the string value of a number definition
This commit is contained in:
parent
5929938a18
commit
cd9fa019dd
@ -25,6 +25,11 @@
|
||||
# define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
// If you have something like "#define MYNUMBER 3" then NTOSTR(MYNUMBER) will be
|
||||
// the string value, so "3".
|
||||
#define NTOSTR_HELPER(x) #x
|
||||
#define NTOSTR(x) NTOSTR_HELPER(x)
|
||||
|
||||
|
||||
// Remember to adjust quality_is_equal() if adding elements
|
||||
struct media_quality {
|
||||
|
Loading…
Reference in New Issue
Block a user