From time to time I have to retrofit unit testing into an unfriendly environment.
In these cases include guards are pretty useful, because:
- I could suppress inclusion of unwanted header file,
- I could check whether specific file was (not)included into test environment.
It seems that both these options are gone with #pragma once.
Are there any workarounds beyond replacing #pragma with guards for critical files?