RDKit: versions.h Source File

| RDKit Open-source cheminformatics and machine learning.

Loading...
Searching...
No Matches
versions.h
Go to the documentation of this file.
1//
2// Copyright (c) 2010-2018 greg Landrum
3//
4// @@ All Rights Reserved @@
5// This file is part of the RDKit.
6// The contents are covered by the terms of the BSD license
7// which is included in the file license.txt, found at the root
8// of the RDKit source tree.
9//
10
11// inspired by:
12// https://github.com/openbabel/openbabel/blob/master/src/config.h.cmake
13#include <RDGeneral/export.h>
14/* Version check macro
15 Can be used like #if (RDKIT_VERSION >= RDKIT_VERSION_CHECK(2018, 3, 1)) */
16#define RDKIT_VERSION_CHECK(year, month, rev) \
17 ((year * 1000) + (month * 10) + (rev))
18
19/* RDKIT_VERSION is (year*1000) + (month*10) + (rev) */
20#define RDKIT_VERSION \
21 RDKIT_VERSION_CHECK(@RDKit_Year @, @RDKit_intMonth @, @RDKit_Revision @)
22
23namespace RDKit {
24 RDKIT_RDGENERAL_EXPORT extern const char* rdkitVersion;
25 RDKIT_RDGENERAL_EXPORT extern const char* boostVersion;
26 RDKIT_RDGENERAL_EXPORT extern const char* rdkitBuild;
27} // namespace RDKit
export.h
RDKIT_RDGENERAL_EXPORT
#define RDKIT_RDGENERAL_EXPORT
Definition export.h:441
RDKit
Std stuff.
Definition Abbreviations.h:19
RDKit::boostVersion
RDKIT_RDGENERAL_EXPORT const char * boostVersion
RDKit::rdkitVersion
RDKIT_RDGENERAL_EXPORT const char * rdkitVersion
RDKit::rdkitBuild
RDKIT_RDGENERAL_EXPORT const char * rdkitBuild