The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at __noop.

Microsoft Specific**

The __noop intrinsic specifies that a function should be ignored and the argument list be parsed but no code be generated for the arguments. It is intended for use in global debug functions that take a variable number of arguments.

The compiler converts the __noop intrinsic to 0 at compile time.


The following code shows how you could use __noop.

// compiler_intrinsics__noop.cpp  
// compile with or without /DDEBUG  
#include <stdio.h>  
#if DEBUG  
   #define PRINT   printf_s  
   #define PRINT   __noop  
int main() {  

See Also

Compiler Intrinsics