pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:675:   }      protected CompilerEnvironment DefaultCompilerEnvironment =    CompilerEnvironment();      protected string cpp(string data, mapping|string|void current_file,    int|string|void charset, object|void handler,    void|int compat_major, void|int compat_minor,    void|int picky_cpp)   { -  mixed err = catch { +     CompilerEnvironment.CPP cpp_obj =    DefaultCompilerEnvironment->CPP(current_file, charset,    handler || UNDEFINED,    compat_major, compat_minor,    picky_cpp);       cpp_obj->init_pike_cpp();    cpp_obj->high_cpp(data);       if (cpp_obj->compile_errors) {    throw(_static_modules.Builtin.CppError("Cpp() failed\n"));    }    if (cpp_obj->dependencies_fail) {    return 0;    }    return cpp_obj->drain(); -  }; -  if (err) { -  handle_error(err); +    } -  return 0; - } +       //! Compile the Pike code in the string @[source] into a program.   //! If @[filename] is not specified, it will default to @expr{"-"@}.   //!   //! Functionally equal to @expr{@[compile](@[cpp](@[source], @[filename]))@}.   //!   //! @seealso   //! @[compile()], @[cpp()], @[compile_file()]   //!   program compile_string(string source, void|string filename,