Is there a way to get the C/C++ preprocessor or a template or such to mangle/hash the \_\_FILE\_\_ and \_\_LINE\_\_ and perhaps some other external input like a build-number into a single short number that can be quoted in logs or error messages?

(The intention would be to be able to reverse it (to a list of candidates if its lossy) when needed when a customer quotes it in a bug report.)