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

Maybe something like this:

pawn Код:
forward func1();
public func1()
{
    otherFunc(1);
}

forward func2();
public func2()
{
    otherFunc(2);
}

otherFunc(functionID)
{
    //some code to get func1's or func2's name or idx
    if(functionID == 1)  print("Called from function Name func1");
   if(functionID == 2)  print("Called from function Name func2");
}
I don't think it's possible any other way.
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: 2 Guest(s)