Pike v8.0 release 1738

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 equivalent to #ifdef MY_DEF.

See also

#if, #ifdef, constant()