Something that changes code at compile time.
It's like a preprocessor define, but with parameters
Macro is a part of code that evaluate or replaced during preprocessing stage
Macros are just snippets defined by programmers, and will be replaced at compiling. Try gcc -E <yourfile.c> and see for yourself. This is an example I found a while ago: https://rosettacode.org/wiki/LU_decomposition#C
Обсуждают сегодня