pike.git/
lib/
master.pike.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-08-15
2001-08-15 20:59:15 by Martin Stjernholm <mast@lysator.liu.se>
8594c88f8eff7c681c4330154caf60ba0d85d262 (
20
lines) (+
19
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
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