ec697c8481
R=sgjesse@google.com BUG= TEST= Review URL: http://codereview.chromium.org//8492007 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1260 260f80e4-7a28-3924-810f-c04153c831b5
24 lines
676 B
Dart
24 lines
676 B
Dart
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
class _Platform implements Platform {
|
|
_Platform();
|
|
|
|
static int _numberOfProcessors() native "Platform_NumberOfProcessors";
|
|
static String _pathSeparator() native "Platform_PathSeparator";
|
|
static String _operatingSystem() native "Platform_OperatingSystem";
|
|
|
|
int numberOfProcessors() {
|
|
return _numberOfProcessors();
|
|
}
|
|
|
|
String pathSeparator() {
|
|
return _pathSeparator();
|
|
}
|
|
|
|
String operatingSystem() {
|
|
return _operatingSystem();
|
|
}
|
|
}
|