792a5cbcee
R=kmillikin@google.com Review URL: https://codereview.chromium.org//11014013 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13069 260f80e4-7a28-3924-810f-c04153c831b5
25 lines
605 B
C++
25 lines
605 B
C++
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef VM_ASSERT_H_
|
|
#define VM_ASSERT_H_
|
|
|
|
#include "platform/assert.h"
|
|
#include "vm/flags.h"
|
|
|
|
namespace dart {
|
|
|
|
DECLARE_FLAG(bool, slow_asserts);
|
|
|
|
// SLOW_ASSERT is used for slow assertion code and disabled by default.
|
|
#if defined(DEBUG)
|
|
#define SLOW_ASSERT(cond) ASSERT(!FLAG_slow_asserts || (cond))
|
|
#else
|
|
#define SLOW_ASSERT(cond)
|
|
#endif
|
|
|
|
} // namespace dart
|
|
|
|
#endif // VM_ASSERT_H_
|