2022-07-22 05:16:54 +08:00
|
|
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
namespace Luau
|
|
|
|
{
|
|
|
|
|
|
|
|
inline bool isFlagExperimental(const char* flag)
|
|
|
|
{
|
|
|
|
// Flags in this list are disabled by default in various command-line tools. They may have behavior that is not fully final,
|
|
|
|
// or critical bugs that are found after the code has been submitted.
|
2022-08-05 06:35:33 +08:00
|
|
|
static const char* kList[] = {
|
2022-10-07 08:23:29 +08:00
|
|
|
"LuauInstantiateInSubtyping", // requires some fixes to lua-apps code
|
2022-11-11 06:53:13 +08:00
|
|
|
"LuauTryhardAnd", // waiting for a fix in graphql-lua -> apollo-client-lia -> lua-apps
|
2022-09-02 07:14:03 +08:00
|
|
|
// makes sure we always have at least one entry
|
|
|
|
nullptr,
|
2022-07-22 05:16:54 +08:00
|
|
|
};
|
|
|
|
|
2022-08-05 06:35:33 +08:00
|
|
|
for (const char* item : kList)
|
2022-07-22 05:16:54 +08:00
|
|
|
if (item && strcmp(item, flag) == 0)
|
|
|
|
return true;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-08-05 06:35:33 +08:00
|
|
|
} // namespace Luau
|