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

This commit is contained in:
Deukhoofd committed 2020-11-01 13:37:09 +01:00
1 parent bdf810b8f0
commit 00253a51b5
1 file changed
+4
+4
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";