Pike v8.1 release 6

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