Re: substitute of __noop in VC6 by Bruno
Bruno
Mon Feb 06 01:23:05 CST 2006
Hi,
in the current platform SDK, __noop has the following declaration (winnt.h):
#ifndef NOP_FUNCTION
#if (_MSC_VER >= 1210)
#define NOP_FUNCTION __noop
#else
#define NOP_FUNCTION (void)0
#endif
#endif
so i don't think there is a real alternative to __noop, but if you use the
NOP_FUNCTION, you don't have to care.
if you cannot use the latest PSDK you can of course define this macro
yourself in your main include file after the windows headers:
#ifndef NOP_FUNCTION
#if (_MSC_VER < 1210)
#define NOP_FUNCTION (void)0
#endif
that way, using NOP_FUNCTION make your code portable to later compiles and
PSDKs.
kind regards,
Bruno.
<pg.gupta@gmail.com> wrote in message
news:1139208922.689892.207340@g14g2000cwa.googlegroups.com...
> Hello,
>
> What is the substitute of __noop (VC7) in VC6?
>
> Thanks,
> Piyush
>