pike.git / lib / modules / Debug.pmod / Subject.pike

version» Context lines:

pike.git/lib/modules/Debug.pmod/Subject.pike:1: - // $Id: Subject.pike,v 1.8 2006/11/04 19:06:48 nilsson Exp $ + // $Id: Subject.pike,v 1.9 2008/06/28 16:36:54 nilsson Exp $      #pike __REAL_VERSION__      //! This is a probe subject which you can send in somewhere to   //! get probed (not to be confused with a probe object, which   //! does some active probing). All calls to LFUNs will be printed   //! to stderr. It is possible to name the subject by passing a   //! string as the first and only argument when creating the subject   //! object.   //!
pike.git/lib/modules/Debug.pmod/Subject.pike:29:   //! Attempt to call the NULL-value   //! Unknown program: 0(2)      #define ENTER(X) \    string t = sprintf("%{%O, %}", args); \    werror("%s%s(%s)\n", id, #X, \    has_suffix(t, ", ") ? t[..<2] : t)      #define PROXY(X,Y) X(mixed ... args) { ENTER(X); return Y; }    - static string id = ""; + protected string id = "";      void create(mixed ... args)   {    ENTER(create);    if(sizeof(args)==1 && stringp(args[0]))    id = "(" + args[0] + ") ";   }      void PROXY(destroy, 0);