4 ms·
Macros are the wrong tool here (as in most situations). A macro will only expand to the same bad code. What you want is a function that can do everything what's
by jstimpfle 5y ago
Macros are the wrong tool here (as in most situations). A macro will only expand to the same bad code. What you want is a function that can do everything what's done on a single line here. For slightly more complex cases, use a list to iterate over and call the function. That will replace (number of lines) function calls by a single one.
- TurboHaskal 5y agoHuh, just for clarification, the code I wrote was never intended to be something that was meant to be abstracted away with a macro.