OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011, 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 |
| 7 #include "include/dart_api.h" |
| 8 |
| 9 #include "bin/builtin.h" |
| 10 #include "bin/dartutils.h" |
| 11 |
| 12 |
| 13 Dart_Handle Builtin::Source() { |
| 14 UNREACHABLE(); |
| 15 return Dart_Null(); |
| 16 } |
| 17 |
| 18 |
| 19 void Builtin::SetupLibrary(Dart_Handle builtin_lib) { |
| 20 UNREACHABLE(); |
| 21 } |
| 22 |
| 23 |
| 24 void Builtin::ImportLibrary(Dart_Handle library) { |
| 25 Dart_Handle url = Dart_NewString(DartUtils::kBuiltinLibURL); |
| 26 Dart_Handle builtin_lib = Dart_LookupLibrary(url); |
| 27 // Import the builtin library into current library. |
| 28 DART_CHECK_VALID(builtin_lib); |
| 29 DART_CHECK_VALID(Dart_LibraryImportLibrary(library, builtin_lib)); |
| 30 } |
OLD | NEW |