pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:2866:    *! Returns the current call stack for the thread.    *!    *! @returns    *! The result has the same format as for @[predef::backtrace()].    *!    *! @seealso    *! @[predef::backtrace()]    */   void f_thread_backtrace(INT32 args)   { -  void low_backtrace(struct Pike_interpreter_struct *); +     struct thread_state *foo = THIS_THREAD;       pop_n_elems(args);       if(foo == Pike_interpreter.thread_state)    {    f_backtrace(0);    }    else if(foo->state.stack_pointer)    {