aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/parser.h b/src/parser.h
index d7ee0570..13fa6d16 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -280,6 +280,9 @@ private:
*/
const wchar_t *is_function() const;
+ /* Helper for stack_trace() */
+ void stack_trace_internal(size_t block_idx, wcstring *out) const;
+
public:
/** Get the "principal" parser, whatever that is */
@@ -425,9 +428,9 @@ public:
const wchar_t *current_filename() const;
/**
- Write a stack trace starting at the specified block to the specified wcstring
+ Return a string representing the current stack trace
*/
- void stack_trace(size_t block_idx, wcstring &buff) const;
+ wcstring stack_trace() const;
};
#endif