changeset 32135:eb5c236389ad

new function to access evaluator debug state * pt-eval.h (tree_evaluator::debug_mode): New function.
author Petter T. <petter.vilhelm@gmail.com>
date Mon, 19 Jun 2023 10:27:27 -0400
parents 426c1c5280fe
children bd26d9693501
files libinterp/parse-tree/pt-eval.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.h	Mon Jun 19 10:27:25 2023 -0400
+++ b/libinterp/parse-tree/pt-eval.h	Mon Jun 19 10:27:27 2023 -0400
@@ -843,6 +843,8 @@
 
   void push_echo_state (int type, const std::string& file_name, int pos = 1);
 
+  bool debug_mode () const { return m_debug_mode; }
+
 private:
 
   template <typename T>