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 * If both handles refer to instances, this is equivalent to using the top-level | 368 * This is equivalent to using the triple-equals (===) operator. |
369 * function identical() from dart:core. Otherwise, returns whether the two | |
370 * argument handles refer to the same object. | |
371 * | 369 * |
372 * \param obj1 An object to be compared. | 370 * \param obj1 An object to be compared. |
373 * \param obj2 An object to be compared. | 371 * \param obj2 An object to be compared. |
374 * | 372 * |
375 * \return True if the objects are identically equal. False otherwise. | 373 * \return True if the objects are identically equal. False otherwise. |
376 */ | 374 */ |
377 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); | 375 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); |
378 | 376 |
379 /** | 377 /** |
380 * Allocates a handle in the current scope from a persistent handle. | 378 * Allocates a handle in the current scope from a persistent handle. |
(...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2285 * | 2283 * |
2286 * \param object An object. | 2284 * \param object An object. |
2287 * \param peer A value to store in the peer field. | 2285 * \param peer A value to store in the peer field. |
2288 * | 2286 * |
2289 * \return Returns an error if 'object' is a subtype of Null, num, or | 2287 * \return Returns an error if 'object' is a subtype of Null, num, or |
2290 * bool. | 2288 * bool. |
2291 */ | 2289 */ |
2292 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2290 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
2293 | 2291 |
2294 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2292 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |