possible "Get Calling Function Name/ idx"?
#1

is it possible to get the name/idx of the function
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);
}
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.
Reply


Messages In This Thread
possible "Get Calling Function Name/ idx"? - by Jonny5 - 24.06.2012, 19:56
Re: possible "Get Calling Function Name/ idx"? - by Makaveli93 - 24.06.2012, 20:51
Re: possible "Get Calling Function Name/ idx"? - by Jonny5 - 24.06.2012, 22:12
Re: possible "Get Calling Function Name/ idx"? - by Jonny5 - 24.06.2012, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)