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

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

Issue 11086065: - Generate a version string based on the VERSION file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months 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
OLDNEW
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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 * is a convenient way to provide an open stream to the callback. 550 * is a convenient way to provide an open stream to the callback.
551 * 551 *
552 * \return Success if the heap profile is successful. 552 * \return Success if the heap profile is successful.
553 */ 553 */
554 DART_EXPORT Dart_Handle Dart_HeapProfile(Dart_HeapProfileWriteCallback callback, 554 DART_EXPORT Dart_Handle Dart_HeapProfile(Dart_HeapProfileWriteCallback callback,
555 void* stream); 555 void* stream);
556 556
557 // --- Initialization and Globals --- 557 // --- Initialization and Globals ---
558 558
559 /** 559 /**
560 * Gets the version string for the Dart VM.
561 *
562 * The version of the Dart VM can be accessed without initializing the VM.
563 *
564 * \return The version string for the embedded Dart VM.
565 */
566 DART_EXPORT const char* Dart_VersionString();
567
568 /**
560 * An isolate creation and initialization callback function. 569 * An isolate creation and initialization callback function.
561 * 570 *
562 * This callback, provided by the embedder, is called when the vm 571 * This callback, provided by the embedder, is called when the vm
563 * needs to create an isolate. The callback should create an isolate 572 * needs to create an isolate. The callback should create an isolate
564 * by calling Dart_CreateIsolate and load any scripts required for 573 * by calling Dart_CreateIsolate and load any scripts required for
565 * execution. 574 * execution.
566 * 575 *
567 * When the function returns false, it is the responsibility of this 576 * When the function returns false, it is the responsibility of this
568 * function to ensure that Dart_ShutdownIsolate has been called if 577 * function to ensure that Dart_ShutdownIsolate has been called if
569 * required (for example, if the isolate was created successfully by 578 * required (for example, if the isolate was created successfully by
(...skipping 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2756 * 2765 *
2757 * \param object An object. 2766 * \param object An object.
2758 * \param peer A value to store in the peer field. 2767 * \param peer A value to store in the peer field.
2759 * 2768 *
2760 * \return Returns an error if 'object' is a subtype of Null, num, or 2769 * \return Returns an error if 'object' is a subtype of Null, num, or
2761 * bool. 2770 * bool.
2762 */ 2771 */
2763 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2772 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2764 2773
2765 #endif // INCLUDE_DART_API_H_ 2774 #endif // INCLUDE_DART_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698