24.06.2012, 19:56
is it possible to get the name/idx of the function
that calls into another function?
example
im sure it wont look like that but that was my poor excuse for the example.
I also assume these will have to be public functions.
even if i can get the funcidx like this then i could use a list of function names to check against.
that calls into another function?
example
pawn Код:
forward func1();
public func1()
{
otherFunc();
}
forward func2();
public func2()
{
otherFunc();
}
otherFunc()
{
//some code to get func1's or func2's name or idx
printf("Called from function Name %s",funcName);
}
I also assume these will have to be public functions.
even if i can get the funcidx like this then i could use a list of function names to check against.