pike.git
/
lib
/
master.pike.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/master.pike.in:1699:
// Use this to rethrow errors that should be converted to plain // compile error messages, without backtraces being reported by // compile_exception. { array bt; if (array|object e = catch (bt = get_backtrace (err))) handle_error (e); throw (CompileCallbackError (call_describe_error (err), bt)); }
-
protected void call_compile_warning (object handler, string file,
-
string msg, mixed ... args)
-
{
+
protected void call_compile_warning
_lineno
(object handler, string file,
+
int lineno,
string msg,
+
mixed ... args)
{
if (sizeof (args)) msg = sprintf (msg, @args); msg = trim (msg); if (handler?->compile_warning)
-
handler->compile_warning (file,
0
, msg);
+
handler->compile_warning (file,
lineno
, msg);
else if (master()->compile_warning)
-
master()->compile_warning (file,
0
, msg);
+
master()->compile_warning (file,
lineno
, msg);
else
-
compile_warning (file,
0
, msg);
+
compile_warning (file,
lineno
, msg);
}
-
+
protected void call_compile_warning (object handler, string file,
+
string msg, mixed ... args)
+
{
+
call_compile_warning_lineno(handler, file, 0, msg, @args);
+
}
+
#if constant(_static_modules.Builtin.mutex) #define THREADED #endif #ifdef __NT__ #define FIX_CASE(X) lower_case(X) #else #define FIX_CASE(X) (X) #endif /* __NT__ */