diff options
| author | tmk <nobody@nowhere> | 2010-10-27 20:51:45 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2010-10-27 22:56:01 +0900 |
| commit | 2f80e790c6310ad24a4cb3d4a72c31314364fef7 (patch) | |
| tree | aad001abdb61ff736e580f98184ab7cd9e870648 /util.h | |
| parent | 461e0d3d8c82cc78d29d3115af3c417bb51bb50f (diff) | |
| download | qmk_firmware-2f80e790c6310ad24a4cb3d4a72c31314364fef7.tar.gz qmk_firmware-2f80e790c6310ad24a4cb3d4a72c31314364fef7.zip | |
new build method for macway
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 14 |
1 files changed, 12 insertions, 2 deletions
| @@ -1,7 +1,17 @@ | |||
| 1 | #ifndef UTIL_H | 1 | #ifndef UTIL_H |
| 2 | #define UTIL_H 1 | 2 | #define UTIL_H 1 |
| 3 | 3 | ||
| 4 | #define XSTR(s) STR(s) | 4 | #include <stdint.h> |
| 5 | #define STR(s) #s | 5 | |
| 6 | // convert to L string | ||
| 7 | #define LSTR(s) XLSTR(s) | ||
| 8 | #define XLSTR(s) L ## #s | ||
| 9 | // convert to string | ||
| 10 | #define STR(s) XSTR(s) | ||
| 11 | #define XSTR(s) #s | ||
| 12 | |||
| 13 | |||
| 14 | int bitpop(uint8_t bits); | ||
| 15 | int biton(uint8_t bits); | ||
| 6 | 16 | ||
| 7 | #endif | 17 | #endif |
