pike.git / src / modules / _Debug / debug.cmod

version» Context lines:

pike.git/src/modules/_Debug/debug.cmod:65:    *!    *! @note    *! Note that the number of references will always be at least one since    *! the value is located on the stack when this function is executed.    *!    *! @seealso    *! @[next()], @[prev()]    */   PIKEFUN int refs(string|array|mapping|multiset|function|object|program o)   { +  if(!REFCOUNTED_TYPE(TYPEOF(*o))) +  SIMPLE_ARG_TYPE_ERROR("refs", 1, +  "array|mapping|multiset|object|" +  "function|program|string|type");    RETURN o->u.refs[0];   }      /*! @decl object next_object(object o)    *! @decl object next_object()    *!    *! Returns the next object from the list of all objects.    *!    *! All objects are stored in a linked list.    *!
pike.git/src/modules/_Debug/debug.cmod:492:      /*! @decl void dump_dmalloc_locations(string|array|mapping| @    *! multiset|function|object| @    *! program|type o)    *!    *! @note    *! Only available when compiled with dmalloc.    */   PIKEFUN void dump_dmalloc_locations(string|array|mapping|multiset|function|object|program|type o)   { +  if(!REFCOUNTED_TYPE(TYPEOF(*o))) +  SIMPLE_ARG_TYPE_ERROR("refs", 1, +  "array|mapping|multiset|object|" +  "function|program|string|type");    debug_malloc_dump_references (o->u.refs, 2, 1, 0);   }   #endif /* DEBUG_MALLOC */      /*! @decl mapping(string:int) get_program_layout(program p)    *! Returns a mapping which describes the layout of compiled machine    *! code in the program @expr{p@}. The indices of the returned mapping    *! are function names, the values the starting address of the compiled    *! function. The total size of the program code is stored with index    *! @expr{0@}.