Extracted from Pike v8.0 release 164 as of 2018-07-18.
   

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()