1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 04:15:44 +03:00

Move utility macros to common/utils.h

This commit is contained in:
Petr Ledvina 2015-01-29 11:59:10 +01:00
parent b568b9c59d
commit e56f46a756
2 changed files with 7 additions and 5 deletions

View file

@ -21,6 +21,12 @@
#define ARRAYLEN(x) (sizeof(x) / sizeof((x)[0]))
#define CONCAT_HELPER(x,y) x ## y
#define CONCAT(x,y) CONCAT_HELPER(x, y)
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
/*
http://resnet.uoregon.edu/~gurney_j/jmpc/bitwise.html
*/