Hey.
Is there a way to generate unique identifiers for a program. For example here's how it can be done with Visual C++ in a file.

Code:
#define UNIQ(s) s##__COUNTER__
then

Code:
int UNIQ(a) = 5; //a0
int UNIQ(a) = 6; //a1
etc...

Unfortunately the counter is restarted per file. Is there a way to make something global for the program.

Thanks in advance for any help.
(Visual C++ specific solutions are ok)