summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__debug
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-09-16 17:29:17 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-09-16 17:29:17 +0000
commitcec9af9ead1269be5a17a7d81ba55173d74c9d21 (patch)
tree60a315406c2d92fabbe4420dd8daad2cc57fe020 /libcxx/include/__debug
parentb489e3b408dd3532ca1ac51de2ea8138b3a2b543 (diff)
downloadbcm5719-llvm-cec9af9ead1269be5a17a7d81ba55173d74c9d21.tar.gz
bcm5719-llvm-cec9af9ead1269be5a17a7d81ba55173d74c9d21.zip
Create multilevel debug mode
llvm-svn: 139913
Diffstat (limited to 'libcxx/include/__debug')
-rw-r--r--libcxx/include/__debug8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/include/__debug b/libcxx/include/__debug
index e7d027add15..4e80c6f8d74 100644
--- a/libcxx/include/__debug
+++ b/libcxx/include/__debug
@@ -11,11 +11,17 @@
#ifndef _LIBCPP_DEBUG_H
#define _LIBCPP_DEBUG_H
+#if _LIBCPP_DEBUG_LEVEL >= 1
+
# include <cstdlib>
# include <cstdio>
# include <cstddef>
# define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : (_VSTD::printf("%s\n", m), _VSTD::abort()))
+#endif
+
+#if _LIBCPP_DEBUG_LEVEL >= 2
+
_LIBCPP_BEGIN_NAMESPACE_STD
struct _LIBCPP_VISIBLE __c_node;
@@ -177,5 +183,7 @@ _LIBCPP_VISIBLE const __libcpp_db* __get_const_db();
_LIBCPP_END_NAMESPACE_STD
+#endif
+
#endif // _LIBCPP_DEBUG_H
OpenPOWER on IntegriCloud