From 3f7fe635d81857db2bcc6806e4bff1337f8c91d5 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 29 Aug 2025 23:04:46 +0200 Subject: [PATCH] Fix 5222f1d35cc10e1166b209b94c7007ebe0275f52 for inactive preprocessor conditional block --- Source/Tools/Flax.Build/Bindings/BindingsGenerator.Parsing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.Parsing.cs b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.Parsing.cs index ae77cd508..14058aaf5 100644 --- a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.Parsing.cs +++ b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.Parsing.cs @@ -538,7 +538,7 @@ namespace Flax.Build.Bindings if (token.Type == TokenType.Preprocessor) { OnPreProcessorToken(ref context, ref token); - while (token.Type == TokenType.Newline) + while (token.Type == TokenType.Newline || token.Value == "endif") token = context.Tokenizer.NextToken(); } if (token.Type == TokenType.Colon)