OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 #ifndef BIN_EXTENSIONS_H_ | |
6 #define BIN_EXTENSIONS_H_ | |
7 | |
8 #include "include/dart_api.h" | |
9 #include "platform/globals.h" | |
10 | |
11 class Extensions { | |
12 public: | |
13 // TODO(whesse): Make loading extensions lazy, so dynamic library is loaded | |
Mads Ager (google)
2012/02/23 09:26:56
I'm not sure about this one. It could be an advant
| |
14 // only when first native function is called. | |
15 // TODO(whesse): Make extension load from a relative path relative to | |
16 // the library it is in. Currently loads from current working directory. | |
17 static Dart_Handle LoadExtension(const char* extension_url, | |
18 Dart_Handle library); | |
19 private: | |
20 DISALLOW_ALLOCATION(); | |
21 DISALLOW_IMPLICIT_CONSTRUCTORS(Extensions); | |
22 }; | |
23 | |
24 #endif // BIN_EXTENSIONS_H_ | |
OLD | NEW |