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

Side by Side Diff: runtime/bin/fuchsia_test.cc

Issue 2117593002: Fuchsia: Initial check-in. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Edit README Created 4 years, 5 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
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
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.
4
5 #include <stdio.h>
6 #include <stdlib.h>
7
8 #include <dart_api.h>
9
10 int main(void) {
11 fprintf(stderr, "Calling Dart_SetVMFlags\n");
12 fflush(stderr);
13 if (!Dart_SetVMFlags(0, NULL)) {
14 fprintf(stderr, "Failed to set flags\n");
15 fflush(stderr);
16 return -1;
17 }
18 fprintf(stderr, "Calling Dart_Initialize\n");
19 fflush(stderr);
20 char* error = Dart_Initialize(
21 NULL, NULL, NULL,
22 NULL, NULL, NULL, NULL,
23 NULL,
24 NULL,
25 NULL,
26 NULL,
27 NULL,
28 NULL,
29 NULL);
30 if (error != NULL) {
31 fprintf(stderr, "VM initialization failed: %s\n", error);
32 fflush(stderr);
33 free(error);
34 return -1;
35 }
36 fprintf(stderr, "Success!\n");
37 fflush(stderr);
38 return 0;
39 }
siva 2016/07/01 17:09:10 Is this going to morph into the embedder? or do yo
zra 2016/07/01 18:25:49 My goal is to be able to build and run the standal
OLDNEW
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/lib/timeline.cc » ('j') | runtime/vm/atomic_fuchsia.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698