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

Method ThrowIntIfNonzero

source/script.cpp:12683–12689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12681}
12682
12683ResultType Line::ThrowIntIfNonzero(int aErrorValue)
12684{
12685 if (!aErrorValue)
12686 return OK;
12687 TCHAR buf[12];
12688 return ThrowRuntimeException(ERR_FAILED, _itot(aErrorValue, buf, 10));
12689}
12690
12691// Logic from the above functions is duplicated in the below functions rather than calling
12692// g_script.mCurrLine->Throw() to squeeze out a little extra performance for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected