| 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 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2048 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, | 2048 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, |
| 2049 Dart_Handle retval); | 2049 Dart_Handle retval); |
| 2050 | 2050 |
| 2051 DART_EXPORT void Dart_SetWeakHandleReturnValue(Dart_NativeArguments args, | 2051 DART_EXPORT void Dart_SetWeakHandleReturnValue(Dart_NativeArguments args, |
| 2052 Dart_WeakPersistentHandle rval); | 2052 Dart_WeakPersistentHandle rval); |
| 2053 | 2053 |
| 2054 DART_EXPORT void Dart_SetBooleanReturnValue(Dart_NativeArguments args, | 2054 DART_EXPORT void Dart_SetBooleanReturnValue(Dart_NativeArguments args, |
| 2055 bool retval); | 2055 bool retval); |
| 2056 | 2056 |
| 2057 DART_EXPORT void Dart_SetIntegerReturnValue(Dart_NativeArguments args, | 2057 DART_EXPORT void Dart_SetIntegerReturnValue(Dart_NativeArguments args, |
| 2058 intptr_t retval); | 2058 int64_t retval); |
| 2059 | 2059 |
| 2060 DART_EXPORT void Dart_SetDoubleReturnValue(Dart_NativeArguments args, | 2060 DART_EXPORT void Dart_SetDoubleReturnValue(Dart_NativeArguments args, |
| 2061 double retval); | 2061 double retval); |
| 2062 | 2062 |
| 2063 /** | 2063 /** |
| 2064 * A native function. | 2064 * A native function. |
| 2065 */ | 2065 */ |
| 2066 typedef void (*Dart_NativeFunction)(Dart_NativeArguments arguments); | 2066 typedef void (*Dart_NativeFunction)(Dart_NativeArguments arguments); |
| 2067 | 2067 |
| 2068 /** | 2068 /** |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 * | 2286 * |
| 2287 * \param object An object. | 2287 * \param object An object. |
| 2288 * \param peer A value to store in the peer field. | 2288 * \param peer A value to store in the peer field. |
| 2289 * | 2289 * |
| 2290 * \return Returns an error if 'object' is a subtype of Null, num, or | 2290 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2291 * bool. | 2291 * bool. |
| 2292 */ | 2292 */ |
| 2293 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2293 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2294 | 2294 |
| 2295 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2295 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |