| 33 | #define VSOMEIP_LOG_PREFIX "util" |
| 34 | |
| 35 | static std::string base_path() { |
| 36 | static std::string* path = []() { |
| 37 | std::string* p; |
| 38 | if (const char* e = VSOMEIP_GETENV(VSOMEIP_ENV_BASE_PATH); e != nullptr && e[0] != '\0') { |
| 39 | p = new std::string(e); |
| 40 | } else { |
| 41 | p = new std::string(VSOMEIP_BASE_PATH); |
| 42 | } |
| 43 | |
| 44 | if (p->empty() || p->back() != '/') { |
| 45 | p->push_back('/'); |
| 46 | } |
| 47 | |
| 48 | return p; |
| 49 | }(); |
| 50 | |
| 51 | return *path; |
| 52 | } |
| 53 | |
| 54 | namespace vsomeip_v3 { |
| 55 |
no outgoing calls
no test coverage detected