/** * @file * Declares utility functions for getting Windows error messages. */ #pragma once #include namespace leatherman { namespace windows { /** * This is a wrapper for printing error messages on Windows. * @param err The Windows error code. * @return A formatted string " ()". */ std::string system_error(unsigned long err); /** * This is a wrapper for printing error messages on Windows. * It calls system_error with GetLastError as the argument. * @return A formatted string " ()". */ std::string system_error(); }} // namespace leatherman::windows