MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / get_current_executable_path

Function get_current_executable_path

deps/GraphBLAS/CUDA/jitify.hpp:1051–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049}
1050
1051static const char* get_current_executable_path() {
1052 static const char* path = []() -> const char* {
1053 static char buffer[JITIFY_PATH_MAX] = {};
1054#ifdef __linux__
1055 if (!::realpath("/proc/self/exe", buffer)) return nullptr;
1056#elif defined(_WIN32) || defined(_WIN64)
1057 if (!GetModuleFileNameA(nullptr, buffer, JITIFY_PATH_MAX)) return nullptr;
1058#endif
1059 return buffer;
1060 }();
1061 return path;
1062}
1063
1064inline bool endswith(const std::string& str, const std::string& suffix) {
1065 return str.size() >= suffix.size() &&

Callers 1

create_moduleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected