Top "Macros" questions

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

Getting a structural type with an anonymous class's methods from a macro

Suppose we want to write a macro that defines an anonymous class with some type members or methods, and then …

scala macros scala-2.10 structural-typing scala-macros
Opposite of C preprocessor "stringification"

When using C preprocessor one can stringify macro argument like this: #define TO_STRING(x) "a string with " #x and …

c macros c-preprocessor stringification
Assembly language: macros vs procedures

I'm new to assembly language and this question came across to my mind: Which is better solution for structuring my …

assembly macros procedures
CUDA compiler (nvcc) macro

Is there a #define compiler (nvcc) macro of CUDA which I can use? (Like _WIN32 for Windows and so on.) …

c++ cuda macros c-preprocessor nvcc
Detect ARM NEON availability in the preprocessor?

According to the ARM ARM, __ARM_NEON__ is defined when Neon SIMD instructions are available. I'm having trouble getting GCC …

gcc macros arm c-preprocessor neon
WRITE_ONCE in linux kernel lists

I am reading the linux kernel implementation of doubled linked list. I do not understand the use of the macro …

c linux macros race-condition
Variadic macros with 0 arguments in C99

I have some debugging code that looks like the following: #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define …

macros c99 variadic
how to export Access 2010 data macros

I need to transfer Access data macros from my test db to my production db. Anybody know how to do …

ms-access macros ms-access-2010 ms-access-data-macro
How can I write a 'clamp' / 'clip' / 'bound' macro for returning a value in a given range?

I often find myself writing something like int computedValue = ...; return MAX(0, MIN(5, computedValue)); I would like to be able to …

objective-c c macros predefined-macro
How to schedule a call to an MS Access macro?

I'm looking to schedule a call to an MS Access macro. This macro uses a .csv file (that I get …

sharepoint ms-access windows-7 macros ms-access-2003