new build method for macway
This commit is contained in:
parent
461e0d3d8c
commit
2f80e790c6
17 changed files with 432 additions and 227 deletions
14
util.h
14
util.h
|
@ -1,7 +1,17 @@
|
|||
#ifndef UTIL_H
|
||||
#define UTIL_H 1
|
||||
|
||||
#define XSTR(s) STR(s)
|
||||
#define STR(s) #s
|
||||
#include <stdint.h>
|
||||
|
||||
// convert to L string
|
||||
#define LSTR(s) XLSTR(s)
|
||||
#define XLSTR(s) L ## #s
|
||||
// convert to string
|
||||
#define STR(s) XSTR(s)
|
||||
#define XSTR(s) #s
|
||||
|
||||
|
||||
int bitpop(uint8_t bits);
|
||||
int biton(uint8_t bits);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue