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 |
41 #include <inttypes.h> | 46 #include <inttypes.h> |
42 #include <stdbool.h> | 47 #include <stdbool.h> |
43 #if __GNUC__ >= 4 | 48 #if __GNUC__ >= 4 |
44 #if defined(DART_SHARED_LIB) | 49 #if defined(DART_SHARED_LIB) |
45 #define DART_EXPORT DART_EXTERN_C __attribute__ ((visibility("default"))) | 50 #define DART_EXPORT DART_EXTERN_C __attribute__ ((visibility("default"))) |
46 #else | 51 #else |
47 #define DART_EXPORT DART_EXTERN_C | 52 #define DART_EXPORT DART_EXTERN_C |
48 #endif | 53 #endif |
49 #else | 54 #else |
50 #error Tool chain not supported. | 55 #error Tool chain not supported. |
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2606 | 2611 |
2607 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); | 2612 typedef void (*Dart_FileWriterFunction)(const char* buffer, int64_t num_bytes); |
2608 | 2613 |
2609 // Support for generating symbol maps for use by the Linux perf tool. | 2614 // Support for generating symbol maps for use by the Linux perf tool. |
2610 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); | 2615 DART_EXPORT void Dart_InitPerfEventsSupport(Dart_FileWriterFunction function); |
2611 | 2616 |
2612 // Support for generating flow graph compiler debugging output into a file. | 2617 // Support for generating flow graph compiler debugging output into a file. |
2613 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); | 2618 DART_EXPORT void Dart_InitFlowGraphPrinting(Dart_FileWriterFunction function); |
2614 | 2619 |
2615 #endif // INCLUDE_DART_API_H_ | 2620 #endif // INCLUDE_DART_API_H_ |
OLD | NEW |