FBWiki : KeyPgPpundef

FBWiki :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

#UNDEF


Preprocessor directive to undefine a macro

Syntax:
#undef symbol

Description:
Undefines a symbol previously defined with #define.

Can be used to ensure that a macro or symbol has a limited lifespan and does not conflict with a similar macro definition that may be defined later in the source code.

(Note: #undef should not be used to undefine variable or function names used in the current function scope. The names are needed internally by the compiler and removing them can cause strange and unexpected results.)

Examples:
#DEFINE ADD2(a_, b_)  ((a_) + (b_))
Print ADD2(1, 2)
' Macro no longer needed so get rid of it ...
#UNDEF ADD2


Differences from QB:

See also:

Back to Preprocessor

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0



sf.net phatcode