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

Function GetWorkingDir

source/script2.cpp:7685–7693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7683
7684
7685LPTSTR GetWorkingDir()
7686// Allocate a copy of the working directory from the heap. This is used to support long
7687// paths without adding 64KB of stack usage per recursive #include <> on Unicode builds.
7688{
7689 TCHAR buf[T_MAX_PATH];
7690 if (GetCurrentDirectory(_countof(buf), buf))
7691 return _tcsdup(buf);
7692 return NULL;
7693}
7694
7695
7696

Callers 1

IsDirectiveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected