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

Function ListVarsHelper

source/script.cpp:13612–13618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13610
13611
13612LPTSTR ListVarsHelper(LPTSTR aBuf, int aBufSize, LPTSTR aBuf_orig, VarList &aVars)
13613{
13614 for (int i = 0; i < aVars.mCount; ++i)
13615 if (aVars.mItem[i]->Type() == VAR_NORMAL) // Don't bother showing VAR_CONSTANT; ToText() doesn't support VAR_VIRTUAL.
13616 aBuf = aVars.mItem[i]->ToText(aBuf, BUF_SPACE_REMAINING, true);
13617 return aBuf;
13618}
13619
13620LPTSTR Script::ListVars(LPTSTR aBuf, int aBufSize) // aBufSize should be an int to preserve negatives from caller (caller relies on this).
13621// aBufSize is an int so that any negative values passed in from caller are not lost.

Callers 1

ListVarsMethod · 0.85

Calls 2

TypeMethod · 0.45
ToTextMethod · 0.45

Tested by

no test coverage detected