If constinit is not implemented by the compiler yet, fall back to constexpr.

This commit is contained in:
Deukhoofd 2020-11-01 13:37:09 +01:00
parent bdf810b8f0
commit 00253a51b5
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@
#include <string>
#include "Identifier.hpp"
#if !__cpp_constinit
#define constinit constexpr
#endif
namespace MalachScript {
static constinit Identifier _voidName = u8"void";
static constinit Identifier _intName = u8"int";