Top "Macros" questions

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

How to create a GNU GAS macro that expands to an expression like "(x+y*240)*2"?

I'm building a program for ARM Linux using GAS, but I want to do some macros to make my development …

assembly macros gnu-assembler
Is there a way to display a macro list similar to displaying your mappings in Vim?

I know there is a way to list mappings via :map (or :imap, :cmap, etc.), but I can't find a …

macros vim vi
LibreOffice UNO Java API: how to open a document, execute a macro and close it?

I'm working on LibreOffice server-side: on the server I run soffice --accept=... Then I use Java LibreOffice client API's to …

java macros openoffice.org libreoffice
What does the # and ## means in C preprocessor macro of c++

I read the following code: #define MACRO(abc, def) {#def ## #abc} char result[10] = MARCO(abc, def); I know the ## operator …

c macros c-preprocessor stringification
Creating a list of symbols in latex

I'm trying to get an auto generated list of symbols in my latex project. Here is the macro that I …

latex macros lookup-tables
When was the NULL macro not 0?

I vaguely remember reading about this a couple of years ago, but I can't find any reference on the net. …

c null macros history
Macro to count number of arguments

I have a variadic function from a third-party C library: int func(int argc, ...); argc indicates the number of passed …

c macros arguments variadic
Display integer at compile time in static_assert()

Here is a simplified version of what I'm trying to do enum First { a, b, c, nbElementFirstEnum, }; enum Second { a, …

c++ macros c++11 integer static-assert
Error when defining a stringising macro with __VA_ARGS__

I have been trying to implement a function macro in C that prepends "DEBUG: ", to the argument, and passes its …

c macros c-preprocessor variadic-macros stringification
*args, **kwargs in jinja2 macros

How are extra args & kwargs handled for a Jinja2 macro? The documentation isn't exactly clear offhand. For example, this …

python macros jinja2