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

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

Issue 9017018: Do not use C++ const references in the C interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 */ 95 */
96 typedef struct _Dart_Handle* Dart_Handle; 96 typedef struct _Dart_Handle* Dart_Handle;
97 97
98 typedef void (*Dart_PeerFinalizer)(void* peer); 98 typedef void (*Dart_PeerFinalizer)(void* peer);
99 99
100 /** 100 /**
101 * Is this an error handle? 101 * Is this an error handle?
102 * 102 *
103 * Requires there to be a current isolate. 103 * Requires there to be a current isolate.
104 */ 104 */
105 DART_EXPORT bool Dart_IsError(const Dart_Handle& handle); 105 DART_EXPORT bool Dart_IsError(Dart_Handle handle);
106 106
107 /** 107 /**
108 * Gets the error message from an error handle. 108 * Gets the error message from an error handle.
109 * 109 *
110 * Requires there to be a current isolate. 110 * Requires there to be a current isolate.
111 * 111 *
112 * \return A C string containing an error message if the handle is 112 * \return A C string containing an error message if the handle is
113 * error. An empty C string ("") if the handle is valid. This C 113 * error. An empty C string ("") if the handle is valid. This C
114 * String is scope allocated and is only valid until the next call 114 * String is scope allocated and is only valid until the next call
115 * to Dart_ExitScope. 115 * to Dart_ExitScope.
116 */ 116 */
117 DART_EXPORT const char* Dart_GetError(const Dart_Handle& handle); 117 DART_EXPORT const char* Dart_GetError(Dart_Handle handle);
118 118
119 /** 119 /**
120 * Is this an error handle for an unhandled exception? 120 * Is this an error handle for an unhandled exception?
121 */ 121 */
122 DART_EXPORT bool Dart_ErrorHasException(Dart_Handle handle); 122 DART_EXPORT bool Dart_ErrorHasException(Dart_Handle handle);
123 123
124 /** 124 /**
125 * Gets the exception Object from an unhandled exception error handle. 125 * Gets the exception Object from an unhandled exception error handle.
126 */ 126 */
127 DART_EXPORT Dart_Handle Dart_ErrorGetException(Dart_Handle handle); 127 DART_EXPORT Dart_Handle Dart_ErrorGetException(Dart_Handle handle);
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1381
1382 // --- Profiling support ---- 1382 // --- Profiling support ----
1383 1383
1384 // External pprof support for gathering and dumping symbolic 1384 // External pprof support for gathering and dumping symbolic
1385 // information that can be used for better profile reports for 1385 // information that can be used for better profile reports for
1386 // dynamically generated code. 1386 // dynamically generated code.
1387 DART_EXPORT void Dart_InitPprofSupport(); 1387 DART_EXPORT void Dart_InitPprofSupport();
1388 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size); 1388 DART_EXPORT void Dart_GetPprofSymbolInfo(void** buffer, int* buffer_size);
1389 1389
1390 #endif // INCLUDE_DART_API_H_ 1390 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698