Minimal traceback implementation for C