]> _ Git - termbox2.git/commit
parse test macros from `gcc -E -dM` output instead of the raw header
authorAdam Saponara <as@php.net>
Thu, 13 Jul 2023 08:23:41 +0000 (04:23 -0400)
committerAdam Saponara <as@php.net>
Thu, 13 Jul 2023 08:24:27 +0000 (04:24 -0400)
commit9f018e5c850a1d4572f5e601ccc16c4231e8ccbf
tree3608a4f0eb3913e2a859ed039d7ed43d7279b7fe
parentfcb8dc56eb75f2df0775200d1a64bff01ef23619
parse test macros from `gcc -E -dM` output instead of the raw header

previously we had no way intelligently parsing out conditional
defines such as:

```c
```

we would parse out TB_XYZ twice and overwrite the first value. this
was breaking tests as we now, for example, have TB_BOLD defined
conditionally.

we are now parsing the output of `gcc -E -dM` instead which give us a
simple list of macro key-vals after the preprocessor has executed.
.gitignore
Makefile
tests/test_64bit/test.php
tests/test_ffi.php