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

This commit is contained in:
2020-11-01 13:37:09 +01:00
parent bdf810b8f0
commit 00253a51b5

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";