pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:2254:    }       UNREACHABLE();    }       /*! @decl mixed random(object o)    *! If random is called with an object, @[lfun::_random] will be    *! called in the object.    *!    *! @throws -  *! Throws an exception if the object doesn't have a _radnom method. +  *! Throws an exception if the object doesn't have a _random method.    *!    *! @seealso    *! @[lfun::_random()]    */    PIKEFUN mixed random(object o)    {    int f = low_find_lfun(o->prog, LFUN__RANDOM);    if (f < 0)    Pike_error("Calling undefined lfun::%s.\n", lfun_names[LFUN__RANDOM]);    struct object *co = Pike_fp->current_object;