//------------------------------------------------------------------------------ // VersionInfo.cpp // Input file for build-time version source generation // // SPDX-FileCopyrightText: Michael Popoloski // SPDX-License-Identifier: MIT // //------------------------------------------------------------------------------ #include "slang/util/VersionInfo.h" using std::string_view; using namespace std::literals; namespace slang { int VersionInfo::getMajor() { return @SLANG_VERSION_MAJOR@; } int VersionInfo::getMinor() { return @SLANG_VERSION_MINOR@; } int VersionInfo::getPatch() { return @SLANG_VERSION_PATCH@; } string_view VersionInfo::getHash() { return "@SLANG_VERSION_HASH@"sv; } } // namespace slang