I think, the counter starts from the first value at the beginning of each new translation unit, is it possible to use an incrementing counter application-wide? I want to have unique values between translation units either.
Do you think FILE macro (converted to an int value, in compile-time) helps?