| 12741 | } |
| 12742 | |
| 12743 | void Script::PrintErrorStdOut(LPCTSTR aErrorText, int aLength, LPCTSTR aFile) |
| 12744 | { |
| 12745 | #ifdef CONFIG_DEBUGGER |
| 12746 | if (g_Debugger.OutputStdOut(aErrorText)) |
| 12747 | return; |
| 12748 | #endif |
| 12749 | TextFile tf; |
| 12750 | tf.Open(aFile, TextStream::APPEND, mErrorStdOutCP); |
| 12751 | tf.Write(aErrorText, aLength); |
| 12752 | tf.Close(); |
| 12753 | } |
| 12754 | |
| 12755 | // For backward compatibility, this actually prints to stderr, not stdout. |
| 12756 | void Script::PrintErrorStdOut(LPCTSTR aErrorText, LPCTSTR aExtraInfo, FileIndexType aFileIndex, LineNumberType aLineNumber) |