Promote STRINGIFY to macros.h
This commit is contained in:
parent
f4a3efd35e
commit
9418b4f2f3
2 changed files with 5 additions and 6 deletions
|
|
@ -1,6 +1,10 @@
|
|||
#ifndef 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
|
||||
#define TEST(n,b) (((n)&_BV(b))!=0)
|
||||
#define SBI(n,b) (n |= _BV(b))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue