Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7701 Discussions

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

SergeyKostrov
Valued Contributor II
119 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