pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:7755:    *! This might not work very well for native objects    *!    *!    *! The function tries to estimate the memory usage of variables    *! belonging to the object.    *!    *! It will not, however, include the size of objects assigned to    *! variables in the object.    *!    *! -  *! If the object has a the lfun _size_object it will be called +  *! If the object has a @[lfun::_size_object()] it will be called    *! without arguments, and the return value will be added to the final    *! size. It is primarily intended to be used by C-objects that    *! allocate memory that is not normally visible to pike. -  +  *! +  *! @seealso +  *! @[lfun::_size_object()], @[sizeof()]    */   static void f__size_object( INT32 args )   {    size_t sum;    unsigned int i;    ptrdiff_t fun;    struct object *o;    struct program *p;    struct mapping *map = NULL;    if( Pike_sp[-1].type != PIKE_T_OBJECT )