SA_Support
Sapphire's Suite's C++ Support library.
Loading...
Searching...
No Matches
Compilers.hpp
Go to the documentation of this file.
1// Copyright (c) 2023 Sapphire's Suite. All Rights Reserved.
2
3#pragma once
4
5#ifndef SAPPHIRE_SUPPORT_COMPILERS_GUARD
6#define SAPPHIRE_SUPPORT_COMPILERS_GUARD
7
9
22#if defined(_MSC_VER) || defined(DOXYGEN)
23
25 #define SA_MSVC 1
26
28 #define SA_MSVC_VERSION _MSC_FULL_VER
29
30#else
31
33 #define SA_MSVC 0
34
35#endif
36
37#if defined(__clang__) || defined(DOXYGEN)
38
40 #define SA_CLANG 1
41
43 #define SA_CLANG_VERSION SA_MAKE_VERSION(__clang_major__, __clang_minor__, __clang_patchlevel__)
44
45#else
46
48 #define SA_CLANG 0
49
50#endif
51
52#if defined(__GNUC__) || defined(DOXYGEN)
53
55 #define SA_GNU 1
56
58 #define SA_GNU_VERSION SA_MAKE_VERSION(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
59
60#else
61
63 #define SA_GNU 0
64
65#endif
66
67
70#endif // GUARD
Version definition file.