mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:10:22 +00:00
724d956fd4
I need to access the flag in bin/main.cc, so it can't be in the vm directory Bug: https://github.com/dart-lang/sdk/issues/36047 Change-Id: Ib19a1b4d89295449b25f7753b2a39f6232c004e3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97122 Commit-Queue: Liam Appelbe <liama@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>
28 lines
715 B
C++
28 lines
715 B
C++
// Copyright (c) 2012, 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.
|
|
|
|
#ifndef RUNTIME_VM_VERSION_H_
|
|
#define RUNTIME_VM_VERSION_H_
|
|
|
|
#include "vm/allocation.h"
|
|
|
|
namespace dart {
|
|
|
|
class Version : public AllStatic {
|
|
public:
|
|
static const char* String();
|
|
static const char* SnapshotString();
|
|
static const char* CommitString();
|
|
static int CurrentAbiVersion();
|
|
static int OldestSupportedAbiVersion();
|
|
|
|
private:
|
|
static const char* str_;
|
|
static const char* snapshot_hash_;
|
|
static const char* commit_;
|
|
};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_VM_VERSION_H_
|