I suppose you could store something thread-locally, but wouldn't it be about as complicated?
/ Mirar
Previous text:
2003-08-29 14:52: Subject: Re: Problems with Backtrace
On Fri, Aug 29, 2003 at 08:25:02AM -0400, Mirar @ Pike developers forum wrote:
array b=backtrace(); if (sizeof(b)>4 && ...b[4]...->is_user_object) return it; foreach (b;;array v) if (...v...->is_user_object) return it;
the thing i don't understand is, why use a backtrace to find the user object?
is there no simpler way to do this?
greetings, martin.
/ Brevbäraren