Exporting aliased functions
I have a function foo(), which I am aliasing like this -
Code:
#define foo blah
_declspec(dllexport) void foo(void){
// some code
}
such that the dll contains the function blah, rather than foo. now what I want to do is to have the dll contain a reference to both foo and blah, even though both references would point to the same entry point. The reason for this is I want to export both a friendly name like
Code:
Foo* FooTheFooInTheFoo(Foo* Foo){};
and an enumerated functon name like this -
Code:
void* Function_0001(void*){};
Anyone have an idea how to do this?