Promote STRINGIFY to macros.h
This commit is contained in:
parent
f4a3efd35e
commit
9418b4f2f3
|
@ -3,8 +3,7 @@
|
||||||
|
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
|
|
||||||
#define LANGUAGE_CONCAT(M) #M
|
#define GENERATE_LANGUAGE_INCLUDE(M) STRINGIFY_(language_##M.h)
|
||||||
#define GENERATE_LANGUAGE_INCLUDE(M) LANGUAGE_CONCAT(language_##M.h)
|
|
||||||
|
|
||||||
|
|
||||||
// NOTE: IF YOU CHANGE LANGUAGE FILES OR MERGE A FILE WITH CHANGES
|
// NOTE: IF YOU CHANGE LANGUAGE FILES OR MERGE A FILE WITH CHANGES
|
||||||
|
@ -88,10 +87,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define STRINGIFY_(n) #n
|
|
||||||
#define STRINGIFY(n) STRINGIFY_(n)
|
|
||||||
|
|
||||||
|
|
||||||
// Common LCD messages
|
// Common LCD messages
|
||||||
|
|
||||||
/* nothing here yet */
|
/* nothing here yet */
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#ifndef MACROS_H
|
#ifndef MACROS_H
|
||||||
#define MACROS_H
|
#define MACROS_H
|
||||||
|
|
||||||
|
// Macros to make a string from a macro
|
||||||
|
#define STRINGIFY_(n) #n
|
||||||
|
#define STRINGIFY(n) STRINGIFY_(n)
|
||||||
|
|
||||||
// Macros for bit masks
|
// Macros for bit masks
|
||||||
#define TEST(n,b) (((n)&_BV(b))!=0)
|
#define TEST(n,b) (((n)&_BV(b))!=0)
|
||||||
#define SBI(n,b) (n |= _BV(b))
|
#define SBI(n,b) (n |= _BV(b))
|
||||||
|
|
Loading…
Reference in a new issue