Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Extra-Creativity/Modern-Cpp-Basics
/ GetErrorCode
Function
GetErrorCode
08-String & Stream/example/src/Socket.h:93–100 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
91
};
92
93
inline auto GetErrorCode()
94
{
95
#ifdef _WIN32
96
return WSAGetLastError();
97
#else
98
return errno;
99
#endif
100
}
101
102
inline bool Startup()
103
{
Callers
2
main
Function · 0.70
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected