pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   // -*- Pike -*-   //   // Master Control Program for Pike.   //   // This file is part of Pike. For copyright information see COPYRIGHT.   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.311 2003/11/18 11:03:45 mast Exp $ + // $Id: master.pike.in,v 1.312 2003/12/01 18:03:10 nilsson Exp $      #pike __REAL_VERSION__      // Some programs destroys character pairs beginning with the currency   // symbol when running in chinese locale.   #if "ยค/" != "\244/"   #error "master.pike.in is corrupted."   #endif      // --- Some configurable parameters
pike.git/lib/master.pike.in:1995:    }       //!    mixed resolv_base(string identifier, string|void current_file,    object|void current_handler)    {    // werror("Resolv_base(%O)\n",identifier);    return get_root_module(current_handler)[identifier];    }    +  //! Same as @[resolv], but throws an error instead of returning +  //! @[UNDEFINED] if the resolv failed. +  mixed resolv_or_error(string identifier, string|void current_file, +  void|object current_handler) +  { +  mixed res = resolv(identifier, current_file, current_handler); +  if(zero_type(res)) error("Could not resolv %s.\n", identifier); +  return res; +  } +     //!    mixed resolv(string identifier, string|void current_file,    object|void current_handler)    {    resolv_debug("resolv(%O, %O)\n",identifier, current_file);    INC_RESOLV_MSG_DEPTH();       // FIXME: Support having the cache in the handler?    if( no_resolv[ identifier ] ) {    DEC_RESOLV_MSG_DEPTH();