MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey-v1.0 / PreparseError

Method PreparseError

Source/script.cpp:11627–11639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11625
11626
11627inline Line *Line::PreparseError(char *aErrorText)
11628// Returns a different type of result for use with the Pre-parsing methods.
11629{
11630 // Make all preparsing errors critical because the runtime reliability
11631 // of the program relies upon the fact that the aren't any kind of
11632 // problems in the script (otherwise, unexpected behavior may result).
11633 // Update: It's okay to return FAIL in this case. CRITICAL_ERROR should
11634 // be avoided whenever OK and FAIL are sufficient by themselves, because
11635 // otherwise, callers can't use the NOT operator to detect if a function
11636 // failed (since FAIL is value zero, but CRITICAL_ERROR is non-zero):
11637 LineError(aErrorText, FAIL);
11638 return NULL; // Always return NULL because the callers use it as their return value.
11639}
11640
11641
11642

Callers 2

PreparseBlocksMethod · 0.80
PreparseIfElseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected