Rename _LIBCPP_DEBUG2 to _LIBCPP_DEBUG.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@189140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2013-08-23 20:10:18 +00:00
parent 5d5f9f9786
commit 5e57142c59
162 changed files with 292 additions and 292 deletions

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with end()
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with first iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with second iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with both iterators from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with a bad range
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// void pop_back();
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -45,7 +45,7 @@ int main()
test(S("abcdefghijklmnopqrst"), S("abcdefghijklmnopqrs"));
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::string s;
s.pop_back();

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator p, charT c);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -76,7 +76,7 @@ int main()
test(s, s.begin()+6, 'C', S("a567ABC1432dcb"));
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::string S;
S s;

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator p, initializer_list<charT> il);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -38,7 +38,7 @@ int main()
assert(s == "123abc456");
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::string s;
std::string s2;

View File

@@ -12,7 +12,7 @@
// template<class InputIterator>
// iterator insert(const_iterator p, InputIterator first, InputIterator last);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -127,7 +127,7 @@ int main()
S("12345678901234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"));
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::string v;
std::string v2;

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator p, size_type n, charT c);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -170,7 +170,7 @@ int main()
test(S("abcdefghijklmnopqrst"), 20, 20, '1', S("abcdefghijklmnopqrst11111111111111111111"));
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::string s;
std::string s2;