MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / ProgramInvocationShortName

Function ProgramInvocationShortName

libs/gflags/src/gflags.cc:1503–1509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1501 return GetArgv0();
1502}
1503const char* ProgramInvocationShortName() { // like the GNU libc fn
1504 const char* slash = strrchr(argv0, '/');
1505#ifdef OS_WINDOWS
1506 if (!slash) slash = strrchr(argv0, '\\');
1507#endif
1508 return slash ? slash + 1 : argv0;
1509}
1510
1511void SetUsageMessage(const string& usage) {
1512 if (program_usage != NULL)

Callers 4

ShowVersionFunction · 0.70
PushNameWithSuffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected