Welcome to mirror list, hosted at ThFree Co, Russian Federation.

error_to_string.h « __support « src « libc - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: afc5e39dab8a417c137dad1459f4950dea319468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//===-- Definition of a class for mapping errors to strings -----*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "src/__support/CPP/string_view.h"
#include "src/__support/integer_to_string.h"

#ifndef LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING
#define LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING

namespace __llvm_libc {

cpp::string_view get_error_string(int err_num);

cpp::string_view get_error_string(int err_num, cpp::string_view buffer);

} // namespace __llvm_libc

#endif // LLVM_LIBC_SRC_SUPPORT_ERROR_TO_STRING