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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 * | 358 * |
359 * \return The converted string if no error occurs during | 359 * \return The converted string if no error occurs during |
360 * the conversion. If an error does occur, an error handle is | 360 * the conversion. If an error does occur, an error handle is |
361 * returned. | 361 * returned. |
362 */ | 362 */ |
363 DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object); | 363 DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object); |
364 | 364 |
365 /** | 365 /** |
366 * Checks to see if two handles refer to identically equal objects. | 366 * Checks to see if two handles refer to identically equal objects. |
367 * | 367 * |
368 * This is equivalent to using the triple-equals (===) operator. | 368 * If both handles refer to instances, this is equivalent to using the top-level |
| 369 * function identical() from dart:core. Otherwise, returns whether the two |
| 370 * argument handles refer to the same object. |
369 * | 371 * |
370 * \param obj1 An object to be compared. | 372 * \param obj1 An object to be compared. |
371 * \param obj2 An object to be compared. | 373 * \param obj2 An object to be compared. |
372 * | 374 * |
373 * \return True if the objects are identically equal. False otherwise. | 375 * \return True if the objects are identically equal. False otherwise. |
374 */ | 376 */ |
375 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); | 377 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); |
376 | 378 |
377 /** | 379 /** |
378 * Allocates a handle in the current scope from a persistent handle. | 380 * Allocates a handle in the current scope from a persistent handle. |
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 * | 2272 * |
2271 * \param object An object. | 2273 * \param object An object. |
2272 * \param peer A value to store in the peer field. | 2274 * \param peer A value to store in the peer field. |
2273 * | 2275 * |
2274 * \return Returns an error if 'object' is a subtype of Null, num, or | 2276 * \return Returns an error if 'object' is a subtype of Null, num, or |
2275 * bool. | 2277 * bool. |
2276 */ | 2278 */ |
2277 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2279 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
2278 | 2280 |
2279 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2281 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |