/* =============================================================================
* scpp_error.hpp
* Copyright (c) 2003 - 2011 Nomura Kei
* LICENSE :
* LGPL (GNU Lesser General General Public License - Version 3,29 June 2007)
* http://www.gnu.org/copyleft/lesser.html
* =============================================================================
*
* エラーモジュール.
* エラー番号, エラーメッセージを扱います.
*
*/
#ifndef SCPP_ERRNO_HPP
#define SCPP_ERRNO_HPP
#include <string>
#include <scpp_os.hpp>
#if (SCPP_IS_WINDOWS)
#include <scpp_errno_win.hpp>
#else
#include <scpp_errno_posix.hpp>
#endif
namespace scpp
{
/**
* エラー番号を扱う.
*/
namespace Errno
{
int getError();
void setError(int errnum);
bool getErrorMessage(std::string* errStr, int errnum);
} // namespace Errno
} // namespace scpp
#endif // SCPP_ERRNO_HPP