1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
13 // Return the various version components.
14 static int GetMajor() { return major_; }
15 static int GetMinor() { return minor_; }
16 static int GetBuild() { return build_; }
17 static int GetPatch() { return patch_; }
18 static bool IsCandidate() { return candidate_; }
20 // Calculate the V8 version string.
21 static void GetString(Vector<char> str);
23 // Calculate the SONAME for the V8 shared library.
24 static void GetSONAME(Vector<char> str);
26 static const char* GetVersion() { return version_string_; }
29 // NOTE: can't make these really const because of test-version.cc.
34 static bool candidate_;
35 static const char* soname_;
36 static const char* version_string_;
38 // In test-version.cc.
39 friend void SetVersion(int major, int minor, int build, int patch,
40 bool candidate, const char* soname);
43 } } // namespace v8::internal
45 #endif // V8_VERSION_H_