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

Method GetLoopFileName

Source/script.cpp:10836–10850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10834
10835
10836VarSizeType Script::GetLoopFileName(char *aBuf)
10837{
10838 char *str = ""; // Set default.
10839 if (mLoopFile)
10840 {
10841 // The loop handler already prepended the script's directory in here for us:
10842 if (str = strrchr(mLoopFile->cFileName, '\\'))
10843 ++str;
10844 else // No backslash, so just make it the entire file name.
10845 str = mLoopFile->cFileName;
10846 }
10847 if (aBuf)
10848 strcpy(aBuf, str);
10849 return (VarSizeType)strlen(str);
10850}
10851
10852VarSizeType Script::GetLoopFileShortName(char *aBuf)
10853{

Callers 1

GetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected