From 1940ef130528e58cdfe0dd1589091947f6d8b8c7 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 20 Jun 2023 03:48:50 -0400 Subject: rewrite compiler again, bringing more in line with standard, and add readme --- bench/bench_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/bench_window.cpp') diff --git a/bench/bench_window.cpp b/bench/bench_window.cpp index cb9f252..70cbbbf 100644 --- a/bench/bench_window.cpp +++ b/bench/bench_window.cpp @@ -254,7 +254,7 @@ void bench_window::on_add_warrior_dialog_response(int response_id, Gtk::FileChoo on_click_new_round(); } catch (const lib94::compiler_exception &ex) { - Gtk::MessageDialog *md = new Gtk::MessageDialog(std::string("failed to compile: ") + ex.message + " on line " + std::to_string(ex.line_number)); + Gtk::MessageDialog *md = new Gtk::MessageDialog(std::string("failed to compile: ") + ex.message + " on line " + std::to_string(ex.source_line_number)); md->set_transient_for(*this); md->set_modal(); md->signal_response().connect([md](int) {delete md;}); -- cgit v1.2.3