pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:682:    void|int compat_major, void|int compat_minor,    void|int picky_cpp)   {    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")); +  return cpp_obj->high_cpp(data);   } -  if (cpp_obj->dependencies_fail) { -  return 0; -  } -  return cpp_obj->drain(); - } +       //! 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,