by jamesfinlayson · 1y ago · 0 comments
I started using googletest in a project with a moderate amount of inline assembly, and of course I got some thoroughly confusing error messages after the substitution replaced the and and or opcodes.
Anyway, I didn't know that push_macro and pop_macro existed, so I'll have to revisit my previous hack around that issue.
In other words, maybe a computer flag would allow you to disable them being defined?
Although this could result in other issues...
In the GCC world, inline asm uses strings so macros don't cause problems.