MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getErrorCodeString

Function getErrorCodeString

Tactility/Source/app/ElfApp.cpp:19–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static auto LOGGER = Logger("ElfApp");
18
19static std::string getErrorCodeString(int error_code) {
20 switch (error_code) {
21 case ENOMEM:
22 return "out of memory";
23 case ENOSYS:
24 return "missing symbol";
25 case EINVAL:
26 return "invalid argument or main() missing";
27 default:
28 return std::format("code {}", error_code);
29 }
30}
31
32class ElfApp final : public App {
33

Callers 1

startElfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected