pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:8034:       out->type_field=BIT_ARRAY;    push_array(out);    return;   }      /*! @endmodule    */      #ifdef PIKE_DEBUG - /*! @decl mixed describe(mixed x) -  *! @belongs Debug -  *! -  *! Prints out a description of the thing @[x] to standard error. -  *! The description contains various internal info associated with -  *! @[x]. -  *! -  *! @note -  *! This function only exists if the Pike runtime has been compiled -  *! with RTL debug. -  */ - PMOD_EXPORT void f__describe(INT32 args) - { -  struct svalue *s; -  get_all_args("_describe", args, "%*", &s); -  debug_describe_svalue(debug_malloc_pass(s)); -  pop_n_elems(args-1); - } -  +    /*! @decl void gc_set_watch(array|multiset|mapping|object|function|program|string x)    *! @belongs Debug    *!    *! Sets a watch on the given thing, so that the gc will print a    *! message whenever it's encountered. Intended to be used together    *! with breakpoints to debug the garbage collector.    *!    *! @note    *! This function only exists if the Pike runtime has been compiled    *! with RTL debug.
pike.git/src/builtin_functions.c:9669:    ADD_FUNCTION2("inherit_list", f_inherit_list,    tFunc(tOr(tObj,tPrg(tObj)),tArr(tPrg(tObj))), 0, OPT_TRY_OPTIMIZE);    ADD_FUNCTION2("program_identifier_defined", f_program_identifier_defined,    tFunc(tOr(tObj,tPrg(tObj)) tString,tString), 0, OPT_TRY_OPTIMIZE);    ADD_FUNCTION2("function_defined", f_function_defined,    tFunc(tFunction,tString), 0, OPT_TRY_OPTIMIZE);      #ifdef PIKE_DEBUG      /* function(1=mixed:1) */ -  ADD_EFUN("_describe",f__describe, -  tFunc(tSetvar(1,tMix),tVar(1)),OPT_SIDE_EFFECT); +     ADD_EFUN("_gc_set_watch", f__gc_set_watch,    tFunc(tComplex,tVoid), OPT_SIDE_EFFECT);    ADD_EFUN("_dump_backlog", f__dump_backlog,    tFunc(tNone,tVoid), OPT_SIDE_EFFECT);    ADD_EFUN("_gdb_breakpoint", pike_gdb_breakpoint,    tFuncV(tNone,tMix,tVoid), OPT_SIDE_EFFECT);   #endif       ADD_EFUN("_gc_status",f__gc_status,    tFunc(tNone,tMap(tString,tOr(tInt,tFloat))),