OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #else | 47 #else |
48 /* __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to | 48 /* __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to |
49 * enable platform independent printf format specifiers. */ | 49 * enable platform independent printf format specifiers. */ |
50 #ifndef __STDC_FORMAT_MACROS | 50 #ifndef __STDC_FORMAT_MACROS |
51 #define __STDC_FORMAT_MACROS | 51 #define __STDC_FORMAT_MACROS |
52 #endif | 52 #endif |
53 #include <inttypes.h> | 53 #include <inttypes.h> |
54 #include <stdbool.h> | 54 #include <stdbool.h> |
55 #if __GNUC__ >= 4 | 55 #if __GNUC__ >= 4 |
56 #if defined(DART_SHARED_LIB) | 56 #if defined(DART_SHARED_LIB) |
57 #define DART_EXPORT DART_EXTERN_C __attribute__ ((visibility("default"))) | 57 #define DART_EXPORT DART_EXTERN_C __attribute__ ((visibility("default"))) \ |
| 58 __attribute((used)) |
58 #else | 59 #else |
59 #define DART_EXPORT DART_EXTERN_C | 60 #define DART_EXPORT DART_EXTERN_C |
60 #endif | 61 #endif |
61 #else | 62 #else |
62 #error Tool chain not supported. | 63 #error Tool chain not supported. |
63 #endif | 64 #endif |
64 #endif | 65 #endif |
65 | 66 |
66 #include <assert.h> | 67 #include <assert.h> |
67 | 68 |
(...skipping 2893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2961 intptr_t* vm_isolate_snapshot_size, | 2962 intptr_t* vm_isolate_snapshot_size, |
2962 uint8_t** isolate_snapshot_buffer, | 2963 uint8_t** isolate_snapshot_buffer, |
2963 intptr_t* isolate_snapshot_size, | 2964 intptr_t* isolate_snapshot_size, |
2964 uint8_t** instructions_snapshot_buffer, | 2965 uint8_t** instructions_snapshot_buffer, |
2965 intptr_t* instructions_snapshot_size); | 2966 intptr_t* instructions_snapshot_size); |
2966 | 2967 |
2967 | 2968 |
2968 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); | 2969 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); |
2969 | 2970 |
2970 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2971 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |