Permalink
Browse files

Merge pull request #68 from sstiller/fix-raise-cpp

fix code generation for internal events (<raise>)
  • Loading branch information...
jp-embedded committed Sep 10, 2018
2 parents 8539222 + 25a3129 commit 23e8d681dbb3e4b8de8500ef171c52e924693937
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cpp_output.cpp
View
@@ -1035,8 +1035,8 @@ void cpp_output::gen_action_part_raise(scxml_parser::action &a)
const string ev = a.attr["event"];
//out << tab << tab << "// " << a.type << " event=" << ev << endl;
if (!opt.thread_safe) out << tab << tab << "event_queue.emplace_back(&" << classname() << "::state::event_" << ev << ");" << endl;
else out << tab << tab << "push_event(&" << classname() << "::state::event_" << ev << ");" << endl;
if (!opt.thread_safe) out << tab << tab << "event_queue.emplace_back(&" << classname() << "::state::" << event_name(ev) << ");" << endl;
else out << tab << tab << "push_event(&" << classname() << "::state::" << event_name(ev) << ");" << endl;
}
void cpp_output::gen_action_part(scxml_parser::action &a)

0 comments on commit 23e8d68

Please sign in to comment.