MCPcopy Create free account
hub / github.com/bombela/backward-cpp / getprogname

Function getprogname

test/_test_main.cpp:43–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41#ifdef _WIN32
42char argv0[MAX_PATH];
43inline const char *getprogname() {
44 return GetModuleFileName(NULL, argv0, sizeof(argv0)) ? argv0 : NULL;
45}
46#elif !defined(__APPLE__)
47// N.B. getprogname() is an Apple/BSD-ism.
48// program_invocation_name is a GLIBC-ism, but it's also

Callers 1

errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected