Branch: Tag:

2001-08-15

2001-08-15 23:01:00 by Martin Stjernholm <mast@lysator.liu.se>

Ignore compilation errors too in compile_exception.

Rev: lib/master.pike.in:1.164

1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.163 2001/08/15 22:19:56 mast Exp $ +  * $Id: master.pike.in,v 1.164 2001/08/15 23:01:00 mast Exp $    *    * Master-file for Pike.    *
1758:   //! this function returns zero.   int compile_exception (array|object trace)   { -  if (objectp (trace) && trace->is_cpp_error) -  // Errors thrown by cpp() are normally not interesting; they've -  // already been reported to compile_error. +  if (objectp (trace) && +  (trace->is_cpp_error || trace->is_compilation_error)) +  // Errors thrown directly by cpp() and compile() are normally not +  // interesting; they've already been reported to compile_error.    return 1;    if (mixed val = get_inhibit_compile_errors()) {    if (objectp (val) && val->compile_exception)