t8  UNKNOWN
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 #ifndef T8_CMAKE_BUILD
51 #include <t8_config.h>
52 #endif
53 
54 /* In order to convert a macro to a string, we
55  * need to pass it through these two helper macros. */
56 #define T8_STRINGIFY(arg) #arg
57 #define T8_STRINGIFY_MIDDLE(arg) T8_STRINGIFY (arg)
58 
60 #define T8_VERSION_POINT_STRING T8_STRINGIFY_MIDDLE (T8_VERSION_POINT)
61 
62 /* call this after including all headers */
63 T8_EXTERN_C_BEGIN ();
64 
69 const char*
71 
75 const char*
77 
81 const char*
83 
87 int
89 
93 int
95 
103 int
105 
106 /* call this at the end of a header file to match T8_EXTERN_C_BEGIN (). */
107 T8_EXTERN_C_END ();
108 
109 #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