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

Method InitFuncLibraries

source/script.cpp:6625–6637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6623#define FUNC_LIB_COUNT 3
6624
6625void Script::InitFuncLibraries(FuncLibrary aLib[])
6626{
6627 // Local lib in script's directory.
6628 InitFuncLibrary(aLib[0], mFileDir, FUNC_LOCAL_LIB);
6629
6630 // User lib in Documents folder.
6631 PWSTR docs_dir = GetDocumentsFolder();
6632 InitFuncLibrary(aLib[1], docs_dir, FUNC_USER_LIB);
6633 CoTaskMemFree(docs_dir);
6634
6635 // Std lib in AutoHotkey directory.
6636 InitFuncLibrary(aLib[2], mOurEXEDir, FUNC_STD_LIB);
6637}
6638
6639void Script::InitFuncLibrary(FuncLibrary &aLib, LPTSTR aPathBase, LPTSTR aPathSuffix)
6640{

Callers

nothing calls this directly

Calls 1

GetDocumentsFolderFunction · 0.85

Tested by

no test coverage detected