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

Method Win32Error

source/script.cpp:12668–12675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12666
12667
12668ResultType Script::Win32Error(DWORD aError, ResultType aErrorType)
12669{
12670 TCHAR number_string[_MAX_ULTOSTR_BASE10_COUNT];
12671 // Convert aError to string to pass it through RuntimeError, but it will ultimately
12672 // be converted to the error number and proper message by OSError.Prototype.__New.
12673 _ultot(aError, number_string, 10);
12674 return RuntimeError(number_string, _T(""), aErrorType, nullptr, ErrorPrototype::OS);
12675}
12676
12677
12678ResultType Line::ThrowIfTrue(bool aError)

Callers 8

CreateMethod · 0.80
FileRecycleEmptyMethod · 0.80
ExecUntilMethod · 0.80
PerformLoopReadFileMethod · 0.80
PerformMethod · 0.80
BIF_DECLFunction · 0.80
BIF_DECLFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected