__noop
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

__noop 

Visual Studio 2005

__noop gives you a function name to use when you want the function to be ignored and the argument list unevaluated.


__noop(functionname)

Parameters

Functionname

Name of function to be ignored

  // The following code shows how you could use __noop
  // compile with or without /DDEBUG
#include <stdio.h>

#if DEBUG
  #define PRINT  printf
#else
  #define PRINT  __noop
#endif

void main() {
PRINT("\nhello\n");
}

Routine Required header Architecture

__noop

<cmnintrin.h>

x86, ARM, SH-4, MIPS

Show:
© 2016 Microsoft