| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1963 * May generate an unhandled exception error. | 1963 * May generate an unhandled exception error. |
| 1964 * | 1964 * |
| 1965 * \return If no error occurs during execution, then the result of | 1965 * \return If no error occurs during execution, then the result of |
| 1966 * invoking the closure is returned. If an error occurs during | 1966 * invoking the closure is returned. If an error occurs during |
| 1967 * execution, then an error handle is returned. | 1967 * execution, then an error handle is returned. |
| 1968 */ | 1968 */ |
| 1969 DART_EXPORT Dart_Handle Dart_InvokeClosure(Dart_Handle closure, | 1969 DART_EXPORT Dart_Handle Dart_InvokeClosure(Dart_Handle closure, |
| 1970 int number_of_arguments, | 1970 int number_of_arguments, |
| 1971 Dart_Handle* arguments); | 1971 Dart_Handle* arguments); |
| 1972 | 1972 |
| 1973 // DEPRECATED: The API below is a temporary hack. | |
| 1974 DART_EXPORT int64_t Dart_ClosureSmrck(Dart_Handle object); | |
| 1975 | |
| 1976 // DEPRECATED: The API below is a temporary hack. | |
| 1977 DART_EXPORT void Dart_ClosureSetSmrck(Dart_Handle object, int64_t value); | |
| 1978 | |
| 1979 // --- Classes and Interfaces --- | 1973 // --- Classes and Interfaces --- |
| 1980 | 1974 |
| 1981 /** | 1975 /** |
| 1982 * Is this a class handle? | 1976 * Is this a class handle? |
| 1983 * | 1977 * |
| 1984 * Most parts of the dart embedding api do not distinguish between | 1978 * Most parts of the dart embedding api do not distinguish between |
| 1985 * classes and interfaces. For example, Dart_GetClass can return a | 1979 * classes and interfaces. For example, Dart_GetClass can return a |
| 1986 * class or an interface and Dart_New can instantiate a class or an | 1980 * class or an interface and Dart_New can instantiate a class or an |
| 1987 * interface. The exceptions are Dart_IsClass and Dart_IsInterface, | 1981 * interface. The exceptions are Dart_IsClass and Dart_IsInterface, |
| 1988 * which can be used to distinguish whether a handle refers to a class | 1982 * which can be used to distinguish whether a handle refers to a class |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2756 * | 2750 * |
| 2757 * \param object An object. | 2751 * \param object An object. |
| 2758 * \param peer A value to store in the peer field. | 2752 * \param peer A value to store in the peer field. |
| 2759 * | 2753 * |
| 2760 * \return Returns an error if 'object' is a subtype of Null, num, or | 2754 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2761 * bool. | 2755 * bool. |
| 2762 */ | 2756 */ |
| 2763 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2757 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2764 | 2758 |
| 2765 #endif // INCLUDE_DART_API_H_ | 2759 #endif // INCLUDE_DART_API_H_ |
| OLD | NEW |