Optimization for include resolving in PreprocessorWrapper.

Reduces the number of copying and decreases the computational
complexity.

Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D3439
This was SVN commit r24740.
This commit is contained in:
vladislavbelov
2021-01-20 23:05:15 +00:00
parent b7000b373a
commit 5d2be02f68
3 changed files with 82 additions and 54 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ public:
// by a file content from the directive's argument. Parsing is strict
// and simple. The directive will be expanded in comments and multiline
// strings.
CStr ResolveIncludes(CStr source);
CStr ResolveIncludes(const CStr& source);
CStr Preprocess(const CStr& input);