//===- version.h ------------------------------------------------*- C++ -*-===//
//
//  Copyright (C) 2018 GrammaTech, Inc.
//
//  This code is licensed under the MIT license. See the LICENSE file in the
//  project root for license terms.
//
//  This project is sponsored by the Office of Naval Research, One Liberty
//  Center, 875 N. Randolph Street, Arlington, VA 22203 under contract #
//  N68335-17-C-0700.  The content of the information does not necessarily
//  reflect the position or policy of the Government and no official
//  endorsement should be inferred.
//
//===----------------------------------------------------------------------===//

#ifndef GTIRB_LAYOUT_VERSION_H
#define GTIRB_LAYOUT_VERSION_H

/**@def GTIRB_LAYOUT_MAJOR_VERSION
   Major Version
*/
#define GTIRB_LAYOUT_MAJOR_VERSION 2

/**@def GTIRB_LAYOUT_MINOR_VERSION
   Minor Version
*/
#define GTIRB_LAYOUT_MINOR_VERSION 2

/**@def GTIRB_LAYOUT_PATCH_VERSION
   Patch Version
*/
#define GTIRB_LAYOUT_PATCH_VERSION 3

#define GTIRB_LAYOUT_STR_HELPER(x) #x
#define GTIRB_LAYOUT_STR(x) GTIRB_LAYOUT_STR_HELPER(x)

/// \file version.h
/// \brief Holds the version macros. Read from version.txt

/**@def GTIRB_LAYOUT_VERSION_STRING
   Full version
*/
#define GTIRB_LAYOUT_VERSION_STRING                                          \
  (GTIRB_LAYOUT_STR(GTIRB_LAYOUT_MAJOR_VERSION) "." GTIRB_LAYOUT_STR(    \
      GTIRB_LAYOUT_MINOR_VERSION) "." GTIRB_LAYOUT_STR(GTIRB_LAYOUT_PATCH_VERSION))

#endif
