Hi,

__COUNTER__ is a gcc/clang compatible extension. Even if it would be nice, I'm 
not sure we want to document all supported extensions.

-----Original Message-----
From: Tinycc-devel [mailto:[email protected]] On 
Behalf Of Temirkhan Myrzamadi
Sent: Monday, May 03, 2021 14:08
To: [email protected]
Subject: [Tinycc-devel] __COUNTER__ isn't documented

The following code snippet:

```
__COUNTER__
__COUNTER__
__COUNTER__
```

Produces the following result:

```
$ tcc tcc.c -std=c99 -E
# 1 "tcc.c"
0
1
2
```

But `__COUNTER__` appear to be undocumented here:
https://bellard.org/tcc/tcc-doc.html.

Maybe it's better to document it explicitly?

```
$ tcc -v
tcc version 0.9.27 (x86_64 Linux)
```

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to