Top "Macros" questions

***DO NOT USE for VBA / MS-Office languages.

How do I determine the current pages document type in umbraco?

I have what I feel is a very simple question about Umbraco, but one that has as of yet no …

razor macros umbraco doctype
Inline function v. Macro in C -- What's the Overhead (Memory/Speed)?

I searched Stack Overflow for the pros/cons of function-like macros v. inline functions. I found the following discussion: Pros …

c performance optimization macros inline
Custom C++ assert macro

I stumbled upon an informative article: http://cnicholson.net/2009/02/stupid-c-tricks-adventures-in-assert/ which pointed out a great number of problems that exist …

c++ macros assert
Any utility to test expand C/C++ #define macros?

It seems I often spend way too much time trying to get a #define macro to do exactly what i …

c++ macros c-preprocessor
Creating a string list and an enum list from a C++ macro

In order to make my code shorter and easier to change I want to replace something like enum{ E_AAA, …

c++ c macros c-preprocessor variadic
The need for parentheses in macros in C

I tried to play with the definition of the macro SQR in the following code: #define SQR(x) (x*x) …

c macros c-preprocessor parentheses
How to generate random variable names in C++ using macros?

I'm creating a macro in C++ that declares a variable and assigns some value to it. Depending on how the …

c++ variables random macros naming
What makes a better constant in C, a macro or an enum?

I am confused about when to use macros or enums. Both can be used as constants, but what is the …

c macros enums
Why aren't there macros in C#?

When learning C# for the first time, I was astonished that they had no support for macros in the same …

c# .net macros c-preprocessor
How to run python macros in LibreOffice?

When I go to Tools -> Macros -> Organize Macros -> Python I get this dialog: It …

python ubuntu macros libreoffice ubuntu-13.10