I need to translate structured exceptions manually, using the current translator.
How do I 'get' the value someone has set by _set_se_translator
?
I need to translate structured exceptions manually, using the current translator.
How do I 'get' the value someone has set by _set_se_translator
?
Better (new) way
I didn't realize this at first, but the SE translator is thread-local, not process-wide.
So this is actually the best (and easiest) solution:
Hacky (old) way
There is no direct way to do this, but if you're going to risk some incompatibility and delve into the Visual C runtime's internals, you can hack up a solution like this: