MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / PrintErrorStdOut

Method PrintErrorStdOut

source/script.cpp:12743–12753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12741}
12742
12743void 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.
12756void Script::PrintErrorStdOut(LPCTSTR aErrorText, LPCTSTR aExtraInfo, FileIndexType aFileIndex, LineNumberType aLineNumber)

Callers 1

LineErrorMethod · 0.80

Calls 5

sntprintfFunction · 0.85
OutputStdOutMethod · 0.80
OpenMethod · 0.45
WriteMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected