Can I record/play macros in Visual Studio 2012/2013/2015/2017/2019?

Apparently macros were dropped from Visual Studio 2012. Is there a plugin/extension/tool that will let me record & play keyboard macros (much like the record/play temporary macro in Visual Studio 2010)? For example, I typically would use a macro when converting code from one language to another or to quickly generate properties from a text list, etc. 10 Answers … Read more

What is “:-!!” in C code?

I bumped into this strange macro code in /usr/include/linux/kernel.h: /* Force a compilation error if condition is true, but also produce a result (of value 0 and type size_t), so the expression can be used e.g. in a structure initializer (or where-ever else comma expressions aren’t permitted). */ #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) #define … Read more