[+] C++23 detection

[+] Other missing languages
This commit is contained in:
Reece Wilson 2023-12-21 13:51:55 +00:00
parent 8df49f8ca8
commit c9a6483edf
2 changed files with 28 additions and 3 deletions

View File

@ -145,6 +145,15 @@
#elif defined(_AURORA_DONT_QUESTION_ME_14) #elif defined(_AURORA_DONT_QUESTION_ME_14)
#define AU_LANG_CPP_14 #define AU_LANG_CPP_14
#define AU_LANG_CPP #define AU_LANG_CPP
#elif defined(_AURORA_DONT_QUESTION_ME_20)
#define AU_LANG_CPP_20
#define AU_LANG_CPP
#elif defined(_AURORA_DONT_QUESTION_ME_23)
#define AU_LANG_CPP_23
#define AU_LANG_CPP
#elif __cplusplus > 202002L
#define AU_LANG_CPP_23
#define AU_LANG_CPP
#elif __cplusplus > 201703L #elif __cplusplus > 201703L
#define AU_LANG_CPP_20 #define AU_LANG_CPP_20
#define AU_LANG_CPP #define AU_LANG_CPP

View File

@ -266,11 +266,27 @@ namespace Aurora::Build
eJavaScript, eJavaScript,
eKotlin, eKotlin,
eHLSL, eHLSL,
gGLSL, eGLSL,
eCpp20Plus = 20 eTypeScript,
eLua,
ePython,
eIM_START = 15,
eIM_SPIR_V = 15,
eIM_MISL = 16,
eIM_JVM = 17,
eIM_V8 = 18,
eIM_USER_CUSTOM = 19,
eIM_END = 20,
// -
// cpp21 does not exist
// cpp22 does not exist
eCpp23 = 23
// ...
}; };
#if defined (AU_LANG_CPP_20) #if defined(AU_LANG_CPP_23)
static const ELanguage kCurrentLanguage = ELanguage::eCpp23;
#elif defined (AU_LANG_CPP_20)
static const ELanguage kCurrentLanguage = ELanguage::eCpp20; static const ELanguage kCurrentLanguage = ELanguage::eCpp20;
#elif defined (AU_LANG_CPP_17) #elif defined (AU_LANG_CPP_17)
static const ELanguage kCurrentLanguage = ELanguage::eCpp17; static const ELanguage kCurrentLanguage = ELanguage::eCpp17;