pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:3156:    {    m_delete (predefines, name);    }       //! Returns a mapping with the current predefines.    mapping get_predefines()    {    return predefines;    }    -  string evaluate_define(string def, string arguments) -  { -  mixed val = arguments ? predefines[def+"()"] : predefines[def]; -  if( callablep(val) ) -  { -  object C = resolv("Parser.C"); -  array args; -  if( arguments ) -  args = map( -  map(C.group(C.split(arguments))/({","}),C.simple_reconstitute), -  Builtin.string_trim); -  else -  args = ({}); -  -  val = val( @args ); -  } -  return (string)val; -  } -  +     //! Instantiate static modules in the same way that dynamic modules    //! are instantiated.    protected mapping(string:mixed) instantiate_static_modules(object|mapping static_modules)    {    mapping(string:mixed) res = ([]), joins = ([]);    foreach(indices(static_modules), string name) {    mixed val = static_modules[name];    if (!val->_module_value)    val = val();    if(mixed tmp=val->_module_value) val=tmp;