From 061e61dba1b4d3d399098ff09e7d2a76d35ce74f Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 2 May 2005 11:14:59 +0000 Subject: [PATCH] *** empty log message *** --- ase/macros.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ase/macros.h b/ase/macros.h index bd8edddc..9378a5fb 100644 --- a/ase/macros.h +++ b/ase/macros.h @@ -1,5 +1,5 @@ /* - * $Id: macros.h,v 1.22 2005-04-18 11:28:07 bacon Exp $ + * $Id: macros.h,v 1.23 2005-05-02 11:14:59 bacon Exp $ */ #ifndef _XP_MACROS_H_ @@ -52,9 +52,8 @@ } \ } while (0); -#define XP_QUOTE(val) __XP_QUOTE(val) -#define __XP_QUOTE(val) #val +#define XP_MQUOTE(val) #val #define XP_MCHAR(ch) ((xp_mchar_t)ch) #define XP_MTEXT(txt) ((const xp_mchar_t*)txt) @@ -63,15 +62,18 @@ #define XP_WCHAR(ch) ((xp_wchar_t)ch) #define XP_WTEXT(txt) don't know yet... may have to call a function? */ +#define XP_WQUOTE(val) ((const xp_char_t*)L###val) #define XP_WCHAR(ch) ((xp_wchar_t)L##ch) #define XP_WTEXT(txt) ((const xp_wchar_t*)L##txt) #if defined(XP_CHAR_IS_MCHAR) #define XP_CHAR(ch) XP_MCHAR(ch) #define XP_TEXT(txt) XP_MTEXT(txt) + #define XP_QUOTE(val) XP_MQUOTE(val) #else #define XP_CHAR(ch) XP_WCHAR(ch) #define XP_TEXT(txt) XP_WTEXT(txt) + #define XP_QUOTE(val) XP_WQUOTE(val) #endif #endif