From 393560d8a2de4b507497786f3203e0c0cebb13c2 Mon Sep 17 00:00:00 2001 From: Itamar Date: Fri, 24 Apr 2020 23:48:25 +0300 Subject: HackStudio: GUI support for setting breakpoints on source code lines --- DevTools/HackStudio/EditorWrapper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'DevTools/HackStudio/EditorWrapper.cpp') diff --git a/DevTools/HackStudio/EditorWrapper.cpp b/DevTools/HackStudio/EditorWrapper.cpp index 5a638f98e3..1ee9eefb68 100644 --- a/DevTools/HackStudio/EditorWrapper.cpp +++ b/DevTools/HackStudio/EditorWrapper.cpp @@ -35,7 +35,7 @@ extern RefPtr g_current_editor_wrapper; extern Function g_open_file; -EditorWrapper::EditorWrapper() +EditorWrapper::EditorWrapper(BreakpointChangeCallback breakpoint_change_callback) { set_layout(); @@ -72,6 +72,8 @@ EditorWrapper::EditorWrapper() m_editor->on_open = [this](String path) { g_open_file(path); }; + + m_editor->on_breakpoint_change = move(breakpoint_change_callback); } EditorWrapper::~EditorWrapper() -- cgit v1.2.3