Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

__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

Community Additions

ADD
Show:
© 2015 Microsoft