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

@@ -12,7 +12,7 @@
// const charT& back() const;
// charT& back();
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -46,7 +46,7 @@ int main()
test(S("1234567890123456789012345678901234567890"));
}
#endif
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
{
std::string s;
char c = s.back();

View File

@@ -11,7 +11,7 @@
// Call back() on empty 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 back() on empty const 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 front() on empty const 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 @@
// Index const string out of bounds.
#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 front() on empty 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 @@
// Index string out of bounds.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -12,7 +12,7 @@
// const charT& front() const;
// charT& front();
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -46,7 +46,7 @@ int main()
test(S("1234567890123456789012345678901234567890"));
}
#endif
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
{
std::string s;
char c = s.front();

View File

@@ -12,7 +12,7 @@
// const_reference operator[](size_type pos) const;
// reference operator[](size_type pos);
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -51,7 +51,7 @@ int main()
assert(s2[0] == '\0');
}
#endif
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
{
std::string s;
char c = s[0];