Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Side by Side Diff: runtime/include/dart_api.h

Issue 1842613002: VM/Mac: Prevent dead_strip from removing API functions. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698