Permalink
Browse files

fix code generation for internal events (<raise>)

  • Loading branch information...
sstiller committed Sep 7, 2018
1 parent 8539222 commit 25a31293a62b4e9171c166720040f951932504ee
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 25a3129

Please sign in to comment.