mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
Don't ignore empty newlines when match in the testsuite, instead only ignore when procedure type is -pp (i.e preprocessing).
This commit is contained in:
parent
045bd4dbda
commit
a75746d610
1 changed files with 5 additions and 3 deletions
8
test.c
8
test.c
|
@ -1060,11 +1060,13 @@ static bool task_trymatch(size_t i, char ***line) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* If data is just null now, that means the line was an empty
|
||||
* one and for that, we just ignore it.
|
||||
* We need to ignore null lines for when -pp is used (preprocessor), since
|
||||
* the preprocessor is likely to create empty newlines in certain macro
|
||||
* instantations, otherwise it's in the wrong nature to ignore empty newlines.
|
||||
*/
|
||||
if (!*data)
|
||||
if (!strcmp(tmpl->proceduretype, "-pp") && !*data)
|
||||
continue;
|
||||
|
||||
if (vec_size(tmpl->comparematch) > compare) {
|
||||
|
|
Loading…
Reference in a new issue