This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Prevent macro expansion of mblen


On Thu, Dec 28, 2000 at 07:14:49PM +0100, Gabriel Dos Reis wrote:
> 	inline int __mblen_capture(const char* p, size_t l)
> 	{ return mblen(p, l); }
> #  undef mblen
> 	extern "C" inline int mblen(const char* p, size_t l)
> 	{ return __mblen_capture(p, l); }

Why in the world do you need the extra indirection
rather than protecting the functional macro expansion
with (mblen) ?


r~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]