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

Method SetLastErrorMaybeThrow

source/script.cpp:12709–12713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12707
12708
12709ResultType Line::SetLastErrorMaybeThrow(bool aError, DWORD aLastError)
12710{
12711 g->LastError = aLastError; // Set this unconditionally.
12712 return aError ? g_script.Win32Error(aLastError) : OK;
12713}
12714
12715void ResultToken::SetLastErrorMaybeThrow(bool aError, DWORD aLastError)
12716{

Callers 3

BIF_DECLFunction · 0.45
script2.cppFile · 0.45
BIF_DECLFunction · 0.45

Calls 1

Win32ErrorMethod · 0.80

Tested by

no test coverage detected