Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7954 Discussions

A new feature request: __COUNTERINC__ & __COUNTERDEC__ macros ( 2nd post due to previous error )

SergeyKostrov
Valued Contributor II
206 Views

This is a new feature request:

Microsoft's compilers have a __COUNTER__ predefined macro, similar to __FILE__ or __LINE__ macros.

__COUNTER__could be used for generation of unique variable names during the compilation.When used in a source code file ( *.c or *.cpp ) the macro increments some internal variable and remembers its state. But, there is No a macro that decrements the internal variable.

I wonder if a support for __COUNTERINC__ & __COUNTERDEC__ macros could be done in Intel C++ compilers?

0 Kudos
0 Replies
Reply