aboutsummaryrefslogtreecommitdiff
path: root/libcxx/test/std/input.output/string.streams/helper_string_macros.h
blob: 4a7d22daa788cb4dd64548912345b8d8657a2ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#ifndef TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_MACROS_H
#define TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_MACROS_H

#include "make_string.h"

#define CS(S) MAKE_CSTRING(CharT, S)
#define ST(S, a) std::basic_string<CharT, TraitsT, AllocT>(MAKE_CSTRING(CharT, S), MKSTR_LEN(CharT, S), a)
#define SV(S) std::basic_string_view<CharT, TraitsT>(MAKE_CSTRING(CharT, S), MKSTR_LEN(CharT, S))

#endif // TEST_STD_INPUTOUTPUT_STRINGSTREAMS_HELPER_MACROS_H