Extracted from Pike v8.0 release 276 as of 2016-07-30.
   

Method defined()


Method defined

bool defined(mixed identifier)

Description

Check whether an identifier is a cpp macro or not.

Returns

defined returns true if the symbol given as argument is defined.

Note

#if defined(MY_DEF) is equvivalent to #ifdef MY_DEF.

See also

#if, #ifdef, constant()