Added support for the popular __COUNTER__ macro.

This commit is contained in:
acqn
2022-07-24 23:19:05 +08:00
parent 168f42bb83
commit 43d2fd2a96
7 changed files with 92 additions and 4 deletions

4
test/val/counter.h Normal file
View File

@@ -0,0 +1,4 @@
/* Tests for predefined macro __COUNTER__ */
#line GET_COUNTER() /* 1st: 8; 2nd: 9 */
int CONCAT(ident,GET_LINE()) = GET_LINE();