pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:3867:   //! Called for every runtime warning. The first argument identifies   //! where the warning comes from, the second identifies the specific   //! message, and the rest depends on that. See code below for currently   //! implemented warnings.   void runtime_warning (string where, string what, mixed... args)   {    if (want_warnings)    switch (where + "." + what) {    case "gc.bad_cycle":    // args[0] is an array containing the objects in the cycle -  // which aren't destructed and have destroy() functions. +  // which aren't destructed and have _destruct() functions.   #if 0    // Ignore this warning for now since we do not yet have a weak    // modifier, so it can't be avoided in a reasonable way. -  werror ("GC warning: Garbing cycle where destroy() will be called " +  werror ("GC warning: Garbing cycle where _destruct() will be called "    "in arbitrary order:\n%{ %s\n%}",    sprintf("%O", args[0][*]));   #endif    break;       default:    werror ("%s warning: %s %O\n", capitalize (where), what, args);    }   }