pike.git
/
src
/
modules
/
_Debug
/
debug.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/_Debug/debug.cmod:3:
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. */ #include "global.h" #include "module.h" #include "pike_error.h" #include "interpret.h" #include "pike_embed.h" #include "module_support.h"
-
#include "pike_security.h"
+
#include "builtin_functions.h" #include "mapping.h" #include "multiset.h" DECLARATIONS /*! @decl int(0..) map_all_objects(function(object:void) cb) *! @belongs Debug *! *! Call cb for all objects that currently exist. The callback will
pike.git/src/modules/_Debug/debug.cmod:31:
*! @returns *! The total number of objects *! *! @seealso *! @[next_object()] */ PIKEFUN int(0..) map_all_objects(function(object:void) cb) { struct object *o = first_object; INT32 total = 0;
-
ASSERT_SECURITY_ROOT("map_all_objects");
+
while( o ) { struct object *next = o->next; if( o->prog ) { ref_push_object( o ); safe_apply_svalue( Pike_sp-2, 1, 1 ); pop_stack(); }