I need merge two nearly identical .c files so that the new file remains 100% compatible with the first project (changing the actual code as little as possible), but will accomodate useage from the second project where the function calls are similar, but (for instance) have more parameters. I need to use macros in the .h as much as possible.
How do I make (.c file)
void foo (int x){...
merge with this
void foo (int x, int x){...
what's the best way to do this with a macro in the header?
How do I make (.c file)
void foo (int x){...
merge with this
void foo (int x, int x){...
what's the best way to do this with a macro in the header?