Roxen.git / server / etc / modules / RoxenDebug.pmod

version» Context lines:

Roxen.git/server/etc/modules/RoxenDebug.pmod:1:   // Some debug tools.   // - // $Id: RoxenDebug.pmod,v 1.17 2012/02/14 14:58:33 mast Exp $ + // $Id$         //! Helper to locate leaking objects. Use a line like this to mark a   //! class for tracking:   //!   //! @example   //! RoxenDebug.ObjectMarker __marker = RoxenDebug.ObjectMarker (this);      mapping(string:int) object_markers = ([]);   mapping(string:string) object_create_places = ([]);
Roxen.git/server/etc/modules/RoxenDebug.pmod:48:       for (i = -1 - ignore_frames; i >= -sizeof (bt); i--)    if ((file = bt[i][0]))    break find_good_frame;    }       if (file) {    string cwd = getcwd() + "/";    if (has_prefix (file, cwd))    file = file[sizeof (cwd)..]; -  else if (has_prefix (file, roxenloader.server_dir)) -  file = file[sizeof (roxenloader.server_dir)..]; +  else if (has_prefix (file, roxenloader.server_dir + "/")) +  file = file[sizeof (roxenloader.server_dir + "/")..];    werror ("%s:%d: %s", file, bt[i][1], msg);    }    else werror (msg);    }       //!    void create (void|string|object obj, void|ObjectMarkerFlags _flags)    {    flags = _flags;    if (obj) {