OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
siva
2012/10/01 23:35:40
I think it is not a good idea to add this file as
| |
4 | |
5 #ifndef VM_ASSERT_H_ | |
6 #define VM_ASSERT_H_ | |
7 | |
8 #include "platform/assert.h" | |
9 #include "vm/flags.h" | |
10 | |
11 namespace dart { | |
12 | |
13 DECLARE_FLAG(bool, slow_asserts); | |
14 | |
15 // SLOW_ASSERT is used for slow assertion code and disabled by default. | |
16 #if defined(DEBUG) | |
17 #define SLOW_ASSERT(cond) ASSERT(!FLAG_slow_asserts || (cond)) | |
18 #else | |
19 #define SLOW_ASSERT(cond) | |
20 #endif | |
siva
2012/10/01 23:35:40
I don't quite understand the need for a VM wide SL
| |
21 | |
22 } // namespace dart | |
23 | |
24 #endif // VM_ASSERT_H_ | |
OLD | NEW |