If constinit is not implemented by the compiler yet, fall back to constexpr.
This commit is contained in:
parent
bdf810b8f0
commit
00253a51b5
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue