Commit f31ca6a4e8123b55ca2a75f309ccc5e04deac666
Fix combining TEST() parameters in stic
Remove trailing commas from IF() and REPEAT(), otherwise expansion of
__VA_ARGS__ ends up has adjacent commas which is an invalid syntax.
Those commas thus aren't actually needed as commas from the argument
list will be preserved.
Author: xaizek
Author date (UTC): 2026-02-15 15:29
Committer name: xaizek
Committer date (UTC): 2026-02-19 09:45
Parent(s): 3490c1e5c5a478f512c4a2716f56bdcf99d5d3a1
Signing key: 99DC5E4DB05F6BE2
Tree: 7e7fe017d911b953ebd50c5d8adcb8fc6251e5d6
| File tests/test-support/stic/stic.h changed (mode: 100644) (index 12ba03ce7..62d329c91) |
| ... |
... |
struct stic_test_data |
| 183 |
183 |
|
|
| 184 |
184 |
#ifdef STIC_C99 |
#ifdef STIC_C99 |
| 185 |
185 |
|
|
| 186 |
|
# define IF(...) .p = __VA_ARGS__, |
|
|
186 |
|
# define IF(...) .p = __VA_ARGS__ |
| 187 |
187 |
|
|
| 188 |
188 |
/* Specifies number of times to repeat the test as an integer (1 by default). */ |
/* Specifies number of times to repeat the test as an integer (1 by default). */ |
| 189 |
|
# define REPEAT(...) .C = 1, .c = (__VA_ARGS__), |
|
|
189 |
|
# define REPEAT(...) .C = 1, .c = (__VA_ARGS__) |
| 190 |
190 |
|
|
| 191 |
191 |
/* Iteration number of the test (0..<repeat number - 1>) or 0. To be used only |
/* Iteration number of the test (0..<repeat number - 1>) or 0. To be used only |
| 192 |
192 |
* in test body. */ |
* in test body. */ |