#Repeat a chunk of code verbatim in only one line

1 messages · Page 1 of 1 (latest)

edgy kiln
#

What I'm looking for is essentially some form of macro, because I need to repeat the same inline assembly dozens of times, but both naked and inline functions won't work for this; and I don't want my code to be cluttered or for me to have to update dozens of lines if the assembly is wrong or needs to be changed.

sick lodge
#

Hard to provide much feedback without knowing more about your specific use case. Possibilities: external assembler source files rather than inline assembly; custom code generation; and using an external macro processor (it's not uncommon to use a C compiler's preprocessor on top of other languages).