OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 main() { | 5 #ifndef SRC_VM_DARTINO_API_IMPL_H_ |
6 while (true) { | 6 #define SRC_VM_DARTINO_API_IMPL_H_ |
7 var a = foo(); | |
8 print(a); | |
9 } | |
10 bar(); | |
11 } | |
12 | 7 |
13 foo() { | 8 #include "include/dartino_api.h" |
14 return 'fisk'; | |
15 } | |
16 | 9 |
17 bar() { | 10 #endif // SRC_VM_DARTINO_API_IMPL_H_ |
18 return 'hest'; | |
19 } | |
OLD | NEW |