From 2f80e790c6310ad24a4cb3d4a72c31314364fef7 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 27 Oct 2010 20:51:45 +0900 Subject: new build method for macway --- util.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index 256bda020..2b607ad28 100644 --- a/util.h +++ b/util.h @@ -1,7 +1,17 @@ #ifndef UTIL_H #define UTIL_H 1 -#define XSTR(s) STR(s) -#define STR(s) #s +#include + +// 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 -- cgit v1.2.3-24-g4f1b