| 203 | } |
| 204 | |
| 205 | void LibrarySystem::GetPlatformError(char *error, size_t maxlength) |
| 206 | { |
| 207 | #if defined PLATFORM_WINDOWS |
| 208 | return GetPlatformErrorEx(GetLastError(), error, maxlength); |
| 209 | #elif defined PLATFORM_POSIX |
| 210 | return GetPlatformErrorEx(errno, error, maxlength); |
| 211 | #endif |
| 212 | } |
| 213 | |
| 214 | void LibrarySystem::GetPlatformErrorEx(int code, char *error, size_t maxlength) |
| 215 | { |
no outgoing calls
no test coverage detected