Pike v8.1 release 6

Method Program.defined()


Method defined

string defined(program p)

Description

Returns a string with filename and linenumber describing where the program p was defined.

The returned string is of the format "filename:linenumber".

If it cannot be determined where the program was defined, 0 (zero) will be returned.


Method defined

string defined(program x, string identifier)

Description

Returns a string with filename and linenumber where idenfifier in x was defined.

Returns 0 (zero) when no line can be found, e.g. for builtin functions.

If idenfier can not be found in x this function returns where the program is defined.