Newer
Older
libj / include / j / lang / errno.hpp
Nomura Kei on 9 Jun 693 bytes first commit
/**
 * @file errno.hpp
 * @brief J Library Errno ヘッダファイル。
 * @copyright  2001 - 2024  Nomura Kei
 * @depends
 *   j.hpp
 *   j/lang/string.hpp
 */
#ifndef J_LANG_ERRNO_HPP
#define J_LANG_ERRNO_HPP

#include <j/lang/string.hpp>

namespace j
{
    namespace lang
    {
        namespace Errno
        {
            // エラー番号を設定する。
            void set(int errnum);

            // エラー番号を取得する。
            int get();

            // メッセージを取得する。
            String message(int errnum);

        } // namespace Errno
    } // namespace lang
} // namespace j

#endif // J_LANG_ERRNO_HPP