pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1769:    PCHARP pcharp = MKPCHARP_STR(str);    ptrdiff_t len = pcharp_strlen(pcharp);    if (len == str->len) {    /* Common case. */    add_ref(str);    return str;    }    return make_shared_binary_pcharp(pcharp, len);   }    - /*! @decl string function_name(function f) + /*! @decl string function_name(function|program f)    *! -  *! Return the name of the function @[f]. +  *! Return the name of the function or program @[f].    *!    *! If @[f] is a global function defined in the runtime @expr{0@}    *! (zero) will be returned.    *!    *! @seealso    *! @[function_object()]    */   PMOD_EXPORT   PIKEFUN string function_name(program|function func)    efun;