t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
t8_version.h
Go to the documentation of this file.
1 /*
2  This file is part of t8code.
3  t8code is a C library to manage a collection (a forest) of multiple
4  connected adaptive space-trees of general element classes in parallel.
5 
6  Copyright (C) 2015 the developers
7 
8  t8code is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  t8code is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with t8code; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22 
46 #ifndef T8_VERSION_H
47 #define T8_VERSION_H
48 
49 #include <t8.h>
50 #include <t8_config.h>
51 
52 /* In order to convert a macro to a string, we
53  * need to pass it through these two helper macros. */
54 #define T8_STRINGIFY(arg) #arg
55 #define T8_STRINGIFY_MIDDLE(arg) T8_STRINGIFY(arg)
56 
58 #define T8_VERSION_POINT_STRING T8_STRINGIFY_MIDDLE(T8_VERSION_POINT)
59 
60 /* call this after including all headers */
61 T8_EXTERN_C_BEGIN ();
62 
67 const char *t8_get_package_string ();
68 
72 const char *t8_get_version_number ();
73 
77 const char *t8_get_version_point_string ();
78 
83 
88 
97 
98 /* call this at the end of a header file to match T8_EXTERN_C_BEGIN (). */
99 T8_EXTERN_C_END ();
100 
101 #endif /* !T8_VERSION_H */
This is the administrative header file for t8code.
const char * t8_get_version_number()
Return the version number of t8code as a string.
Definition: t8_version.c:38
int t8_get_version_patch()
Return the patch version number of t8code.
Definition: t8_version.c:56
int t8_get_version_minor()
Return the minor version number of t8code.
Definition: t8_version.c:50
const char * t8_get_package_string()
Return the package string of t8code.
Definition: t8_version.c:26
const char * t8_get_version_point_string()
Return the version point string.
Definition: t8_version.c:32
int t8_get_version_major()
Return the major version number of t8code.
Definition: t8_version.c:44