OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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 INCLUDE_DART_API_H_ | 5 #ifndef INCLUDE_DART_API_H_ |
6 #define INCLUDE_DART_API_H_ | 6 #define INCLUDE_DART_API_H_ |
7 | 7 |
8 /** \mainpage Dart Embedding API Reference | 8 /** \mainpage Dart Embedding API Reference |
9 * | 9 * |
10 * Dart is a class-based programming language for creating structured | 10 * Dart is a class-based programming language for creating structured |
(...skipping 20 matching lines...) Expand all Loading... |
31 typedef unsigned __int8 uint8_t; | 31 typedef unsigned __int8 uint8_t; |
32 typedef unsigned __int16 uint16_t; | 32 typedef unsigned __int16 uint16_t; |
33 typedef unsigned __int32 uint32_t; | 33 typedef unsigned __int32 uint32_t; |
34 typedef unsigned __int64 uint64_t; | 34 typedef unsigned __int64 uint64_t; |
35 #if defined(DART_SHARED_LIB) | 35 #if defined(DART_SHARED_LIB) |
36 #define DART_EXPORT DART_EXTERN_C __declspec(dllexport) | 36 #define DART_EXPORT DART_EXTERN_C __declspec(dllexport) |
37 #else | 37 #else |
38 #define DART_EXPORT DART_EXTERN_C | 38 #define DART_EXPORT DART_EXTERN_C |
39 #endif | 39 #endif |
40 #else | 40 #else |
41 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to | |
42 // enable platform independent printf format specifiers. | |
43 #ifndef __STDC_FORMAT_MACROS | |
44 #define __STDC_FORMAT_MACROS | |
45 #endif | |
46 #include <inttypes.h> | 41 #include <inttypes.h> |
47 #include <stdbool.h> | 42 #include <stdbool.h> |
48 #if __GNUC__ >= 4 | 43 #if __GNUC__ >= 4 |
49 #if defined(DART_SHARED_LIB) | 44 #if defined(DART_SHARED_LIB) |
50 #define DART_EXPORT DART_EXTERN_C __attribute__ ((visibility("default"))) | 45 #define DART_EXPORT DART_EXTERN_C __attribute__ ((visibility("default"))) |
51 #else | 46 #else |
52 #define DART_EXPORT DART_EXTERN_C | 47 #define DART_EXPORT DART_EXTERN_C |
53 #endif | 48 #endif |
54 #else | 49 #else |
55 #error Tool chain not supported. | 50 #error Tool chain not supported. |
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2611 | 2606 |
2612 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); | 2607 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); |
2613 | 2608 |
2614 // Support for generating symbol maps for use by the Linux perf tool. | 2609 // Support for generating symbol maps for use by the Linux perf tool. |
2615 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); | 2610 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); |
2616 | 2611 |
2617 // Support for generating flow graph compiler debugging output into a file. | 2612 // Support for generating flow graph compiler debugging output into a file. |
2618 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); | 2613 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); |
2619 | 2614 |
2620 #endif // INCLUDE_DART_API_H_ | 2615 #endif // INCLUDE_DART_API_H_ |
OLD | NEW |