Add support for constexpr fields in Scripting API

This commit is contained in:
Wojtek Figat
2022-06-16 21:56:48 +02:00
parent 02cb0f938b
commit 2bd3c0f74f
5 changed files with 41 additions and 16 deletions

View File

@@ -1155,6 +1155,11 @@ namespace Flax.Build.Bindings
desc.IsStatic = true;
context.Tokenizer.NextToken();
}
else if (!desc.IsConstexpr && token.Value == "constexpr")
{
desc.IsConstexpr = true;
context.Tokenizer.NextToken();
}
else if (!isMutable && token.Value == "mutable")
{
isMutable = true;