Prevent macro expansion of mblen

Richard Henderson rth@redhat.com
Thu Dec 28 10:19:00 GMT 2000


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~


More information about the Libstdc++ mailing list