Branch: Tag:

2001-08-15

2001-08-15 20:59:15 by Martin Stjernholm <mast@lysator.liu.se>

Added compile_exception.

Rev: lib/master.pike.in:1.162

1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.161 2001/07/28 14:11:14 nilsson Exp $ +  * $Id: master.pike.in,v 1.162 2001/08/15 20:59:15 mast Exp $    *    * Master-file for Pike.    *
1753:   }       + //! This function is called when an exception is catched during + //! compilation. Its message is also reported to @[compile_error] if + //! this function returns zero. + int compile_exception (array|object trace) + { +  if (mixed val = get_inhibit_compile_errors()) { +  if (objectp (val) && val->compile_exception) +  return val->compile_exception (trace); +  } +  else { +  handle_error (trace); +  return 1; +  } +  return 0; + } +  +    //! Called for every runtime warning. The first argument identifies   //! where the warning comes from, the second identifies the specific   //! message, and the rest depends on that. See code below for currently