Add FLAX_BUILD_BINDINGS define for Scripting API parser to be used if needed

This commit is contained in:
Wojtek Figat
2022-05-23 19:57:38 +02:00
parent c87f2f5b56
commit a116a1fb8d

View File

@@ -218,6 +218,7 @@ namespace Flax.Build.Bindings
ScopeAccessStack = new Stack<AccessLevel>(), ScopeAccessStack = new Stack<AccessLevel>(),
PreprocessorDefines = new Dictionary<string, string>(), PreprocessorDefines = new Dictionary<string, string>(),
}; };
context.PreprocessorDefines.Add("FLAX_BUILD_BINDINGS", "1");
context.EnterScope(fileInfo); context.EnterScope(fileInfo);
// Process the source code // Process the source code