Subj : Re: relating to JS_DefineFunction To : Frank Luctos From : Brendan Eich Date : Thu Apr 21 2005 02:12 pm Frank Luctos wrote: > Let's say I have function "foo" that I define via JS_DefineFunction(cx, > my_obj, "foo", foo, 2, 0) > > Once inside the c code that implements "foo" is there any way at all that I > could access the actual statement in the script that initiated that call? > > So let's say the call was "dosomething(foo("blah")); > > Can I somehow get back "dosomething(foo("blah")) in my c code? What do you mean by "actual statement"? The line or lines of source code? Some information other than source code about the caller? And: why do you want whatever information it is that you want? What use do you intend to make of this information? /be .