Hi,
I have a C library that has generated function names. It's not really practical to change them all at the same time, so I want to use aliasing. I'm using gcc and know about the __attribute(alias("name"))___ but the problem is that the functions are in another translation unit.
Is it possible to alias extern function names without redefining them everywhere? Right now I do it like this:
extern "C" {
extern void w2c_f337(u32, u32, u32);
};
void my_name(u32 a, u32 b, u32 c) {
w2c_f337(a, b, c);
}
I want to avoid this boiler plate in a clean way.
Any tips?