mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 22:01:19 +00:00
415d53b557
Uri.base returns the natural base URI for the current platform. R=ahe@google.com, floitsch@google.com, iposva@google.com, rnystrom@google.com BUG= Review URL: https://codereview.chromium.org//23686021 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27877 260f80e4-7a28-3924-810f-c04153c831b5
20 lines
497 B
C++
20 lines
497 B
C++
// Copyright (c) 2013, 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.
|
|
|
|
#include "vm/bootstrap_natives.h"
|
|
#include "vm/native_entry.h"
|
|
#include "vm/object.h"
|
|
|
|
namespace dart {
|
|
|
|
DEFINE_NATIVE_ENTRY(Uri_isWindowsPlatform, 0) {
|
|
#if defined(TARGET_OS_WINDOWS)
|
|
return Bool::True().raw();
|
|
#else
|
|
return Bool::False().raw();
|
|
#endif
|
|
}
|
|
|
|
} // namespace dart
|