[Gambas-user] Procedure call stack...

Benoît Minisini g4mba5 at gmail.com
Mon Feb 8 15:49:38 CET 2021


Le 08/02/2021 à 15:34, sbungay a écrit :
>    I have need to be able to check the procedure call stack from within 
> a called procedure so it knows what procedure/function called it and can 
> branch the logic accordingly. How can I access this info from within a 
> sub or function?
> 

By analyzing System.Backtrace.

But I don't think it's a good idea to base your code logic on that., 
because the format of System.Backtrace may change.

Regards,

-- 
Benoît Minisini


More information about the User mailing list