get address of overloaded function

Posted By: TechMuc

get address of overloaded function - 10/20/12 21:39

hi,

is there any possiblity to get the address of an overloaded function (by name, line in script or whatever). Probably there is an internal way, as the debugger is able to determine the local function from a line of code.

If there is an internal way - could you please at least export the symbols for this function in the acknex.dll?

Thanks a lot,
regards,
Timo
Posted By: jcl

Re: get address of overloaded function - 10/22/12 06:45

There is no function at the moment to determine the separate addresses of overlaoded functions.
Posted By: TechMuc

Re: get address of overloaded function - 10/22/12 07:04

Hmm are there any future plans? I mean it would be sufficient to let the engine_getscript function return all different overloaded function in subsequent calls. E.g.

Code:
std::vector<void*> p_overloaded;
void* p_single = 0;
while((p_single = (void*)engine_getscript("overloaded_function")) != 0) {
   p_overloaded.push_back(p_single);
}



Thanks a lot,
Timo
Posted By: jcl

Re: get address of overloaded function - 10/22/12 07:39

It would be better to add a new engine_getscript function that gets the number of the function as argument. I've put that on my list.
© 2024 lite-C Forums