[Bf-blender-cvs] [c23e2becdc2] functions: print with traceback utility
Jacques Lucke
noreply at git.blender.org
Tue Mar 26 11:22:27 CET 2019
Commit: c23e2becdc215ffbaaa1a06cb950ad5d71e81963
Author: Jacques Lucke
Date: Tue Mar 26 11:00:08 2019 +0100
Branches: functions
https://developer.blender.org/rBc23e2becdc215ffbaaa1a06cb950ad5d71e81963
print with traceback utility
===================================================================
M source/blender/functions/backends/tuple_call/execution_context.cpp
M source/blender/functions/backends/tuple_call/execution_context.hpp
===================================================================
diff --git a/source/blender/functions/backends/tuple_call/execution_context.cpp b/source/blender/functions/backends/tuple_call/execution_context.cpp
index 62f00e513a8..2a5e8c8f86e 100644
--- a/source/blender/functions/backends/tuple_call/execution_context.cpp
+++ b/source/blender/functions/backends/tuple_call/execution_context.cpp
@@ -24,4 +24,10 @@ namespace FN {
return std::string(m_text);
}
+ void ExecutionContext::print_with_traceback(std::string msg)
+ {
+ m_stack.print_traceback();
+ std::cout << "-> " << msg << std::endl;
+ }
+
} /* namespace FN */
\ No newline at end of file
diff --git a/source/blender/functions/backends/tuple_call/execution_context.hpp b/source/blender/functions/backends/tuple_call/execution_context.hpp
index 317a707dce8..72b8509e197 100644
--- a/source/blender/functions/backends/tuple_call/execution_context.hpp
+++ b/source/blender/functions/backends/tuple_call/execution_context.hpp
@@ -74,6 +74,8 @@ namespace FN {
{
return m_stack;
}
+
+ void print_with_traceback(std::string msg);
};
} /* namespace FN */
\ No newline at end of file
More information about the Bf-blender-cvs
mailing list