Develop Biology
The language of life
LanguageMacros.h
Go to the documentation of this file.
1/*
2 * This file is a part of the Biology project by eons LLC.
3 * Biology (aka Develop Biology) is a framework for approaching software
4 * development from a natural sciences perspective.
5 *
6 * Copyright (C) 2021 Séon O'Shannon & eons LLC
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
12 *
13 * This program 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 Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#define BIO_CPP_VERSION 0
25#define BIO_C_VERSION 0
26
27
28#ifdef __cplusplus
29 #if __cplusplus == 199711L
30 #undef BIO_CPP_VERSION
31 #define BIO_CPP_VERSION 1
32 #elif __cplusplus == 201103L
33 #undef BIO_CPP_VERSION
34 #define BIO_CPP_VERSION 11
35 #elif __cplusplus == 201402L
36 #undef BIO_CPP_VERSION
37 #define BIO_CPP_VERSION 14
38 #elif __cplusplus == 201703L
39 #undef BIO_CPP_VERSION
40 #define BIO_CPP_VERSION 17
41 #elif __cplusplus == 202002L
42 #undef BIO_CPP_VERSION
43 #define BIO_CPP_VERSION 20
44 #else
45 #undef BIO_CPP_VERSION
46 #define BIO_CPP_VERSION 20
47 #endif
48#endif
49
50#ifdef __STDC_VERSION__
51 #if __STDC_VERSION__ == 199409L
52 #undef BIO_C_VERSION
53 #define BIO_C_VERSION 1
54 #elif __STDC_VERSION__ == 199901L
55 #undef BIO_C_VERSION
56 #define BIO_C_VERSION 2
57 #elif __STDC_VERSION__ == 201112L
58 #undef BIO_C_VERSION
59 #define BIO_C_VERSION 11
60 #elif __STDC_VERSION__ == 201710L
61 #undef BIO_C_VERSION
62 #define BIO_C_VERSION 18
63 #else
64 #undef BIO_C_VERSION
65 #define BIO_C_VERSION 18
66 #endif
67#endif