OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef BIN_BUILTIN_H_ | 5 #ifndef BIN_BUILTIN_H_ |
6 #define BIN_BUILTIN_H_ | 6 #define BIN_BUILTIN_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 #include "bin/globals.h" | |
12 #include "include/dart_api.h" | 11 #include "include/dart_api.h" |
13 | 12 |
| 13 #include "platform/globals.h" |
| 14 |
14 #ifdef DEBUG | 15 #ifdef DEBUG |
15 #define ASSERT(expr) assert(expr) | 16 #define ASSERT(expr) assert(expr) |
16 #else | 17 #else |
17 #define ASSERT(expr) USE(expr) | 18 #define ASSERT(expr) USE(expr) |
18 #endif | 19 #endif |
19 | 20 |
20 #define FATAL(error) \ | 21 #define FATAL(error) \ |
21 fprintf(stderr, "%s\n", error); \ | 22 fprintf(stderr, "%s\n", error); \ |
22 fflush(stderr); \ | 23 fflush(stderr); \ |
23 abort(); | 24 abort(); |
(...skipping 24 matching lines...) Expand all Loading... |
48 int argument_count); | 49 int argument_count); |
49 | 50 |
50 static const char Builtin_source_[]; | 51 static const char Builtin_source_[]; |
51 | 52 |
52 DISALLOW_ALLOCATION(); | 53 DISALLOW_ALLOCATION(); |
53 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); | 54 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); |
54 }; | 55 }; |
55 | 56 |
56 | 57 |
57 #endif // BIN_BUILTIN_H_ | 58 #endif // BIN_BUILTIN_H_ |
OLD | NEW |