Skip to main content

#undef

Syntax


#undef *IDname *

Description


This statement directs the pre-processor to forget the word IDname for pre-processing. 

So #ifdef IDname will now evaluate to FALSE.

Example

\

#define
COMPILETHIS

'...

#ifdef COMPILETHIS

'... will now be included

#endif

#undef
COMPILETHIS

#ifdef COMPILETHIS

'... will now
not be included

#endif

Differences from other BASICs

\

  • no equivalent in PBASIC
  • no equivalent in Visual BASIC, but may be done with C-pre-processor

See also

\