ae2f_docs
Loading...
Searching...
No Matches
Cxx.h
Go to the documentation of this file.
1/**
2 * @file Cxx.h
3 * @author ae2f
4 * @brief
5 * @date 2025-02-01
6 *
7 * @copyright Copyright (c) 2025
8 *
9 */
10
11#ifndef ae2f_Cxx_h
12#define ae2f_Cxx_h
13
14#include "./Guide.h"
15#include "./LangVer.h"
16
18
19/**
20 @def ae2f_WhenCXX
21 @brief
22 Appears when the current language is C++.
23 */
24#define ae2f_WhenCXX(a) a
25
26/**
27 @brief
28 Appears when the current language is C.
29 */
30#define ae2f_WhenC(a)
31
32#else
33
34/**
35 @brief
36 Appears when the current language is C++.
37 */
38#define ae2f_WhenC(a) a
39
40/**
41 @brief
42 Appears when the current language is C.
43 */
44#define ae2f_WhenCXX(a)
45
46#endif
47
48#define ae2f_is_cxx ae2f_WhenC(0) ae2f_WhenCXX(1)
49
50
51/**
52 @brief
53 Putting it after one condition in #if will find if the script's language considered as [C], while doxygen does not notice.
54
55 For alter, see @ref ae2f_cxx_check
56 */
57#define ae2f_c_check && !ae2f_is_cxx
58
59/**
60 @brief
61 Putting it after one condition in #if will find if the script's language considered as [C++], while doxygen does not notice.
62
63 For alter, see @ref ae2f_c_check
64 */
65#define ae2f_cxx_check && ae2f_is_cxx
66
67#include "./Cxx/Reg.h"
68#include "./Cxx/Constexpr.h"
69#include "./Cxx/Nil.h"
70
71#endif
#define ae2f_WhenCXX(a)
Appears when the current language is C.
Definition Cxx.h:44
#define ae2f_is_cxx
Definition Cxx.h:48
#define ae2f_WhenC(a)
Appears when the current language is C++.
Definition Cxx.h:38
#define ae2f_stdcc_v
Standard C++ version. .
Definition LangVer.h:34
#define ae2f_PackCount
Definition Num.auto.h:6