浏览代码

+ give line number of internal error

carl 22 年之前
父节点
当前提交
05d6af8745
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      compiler/comphook.pas

+ 5 - 2
compiler/comphook.pas

@@ -336,7 +336,7 @@ end;
 
 function def_internalerror(i : longint) : boolean;
 begin
-  do_comment(V_Fatal,'Internal error '+tostr(i));
+  do_comment(V_Fatal,'Internal error '+tostr(i)+':'+tostr(status.currentline));
 {$ifdef EXTDEBUG}
   {$ifdef FPC}
     { Internalerror() and def_internalerror() do not
@@ -385,7 +385,10 @@ end;
 end.
 {
   $Log$
-  Revision 1.24  2003-01-09 21:52:37  peter
+  Revision 1.25  2003-02-15 22:20:43  carl
+   + give line number of internal error
+
+  Revision 1.24  2003/01/09 21:52:37  peter
     * merged some verbosity options.
     * V_LineInfo is a verbosity flag to include line info