diff options
author | Benji Dial <benji@benjidial.net> | 2023-06-20 03:48:50 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2023-06-20 03:48:50 -0400 |
commit | 1940ef130528e58cdfe0dd1589091947f6d8b8c7 (patch) | |
tree | 156378cbfa060dcae4973a538c0f3237b9dfc1ca /bench/bench_window.cpp | |
parent | d24a732c772b40f804403ab5758f33f74b2eb6ed (diff) | |
download | lib94-1940ef130528e58cdfe0dd1589091947f6d8b8c7.tar.gz |
rewrite compiler again, bringing more in line with standard, and add readme
Diffstat (limited to 'bench/bench_window.cpp')
-rw-r--r-- | bench/bench_window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;}); |