I have a series of functions that I need to call, and all the calls are of the form:
StartingFunctionName[Thing]Callback(&[Thing]);
Where [Thing]
is the same thing each time
for example, I have to call
StartingFunctionNameMyFunctionCallback(&MyFunction);
and I'd like to rather do foo(MyFunction);
where foo would be the macro.
I was wondering if there was a way to use a macro, so that its input is the string (or something like that) Thing, and the output is the correct line of code.