Skip to content

Commit

Permalink
yasmine-1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SeadexTM authored Oct 16, 2017
1 parent 17ecaff commit decae15
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libyasmine/source/choice_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ bool choice_impl::check( state_machine_defects& _defects ) const
get_outgoing_transitions().size() );
SX_LOG( hermes::log_level::LL_SPAM, "Checking if choice '%' has more than one outgoing transition with no guard.",
get_name() );
uint8_t number_of_transitions_with_no_guard = 0;
sxe::uint8_t number_of_transitions_with_no_guard = 0;

SX_FOR( const transition* const transition, get_outgoing_transitions() )
{
Expand Down
18 changes: 11 additions & 7 deletions libyasmine/source/transition_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ namespace sxy


#ifdef SX_CPP03_BOOST
#pragma warning( push )
#pragma warning( disable : 4100 )
#ifdef _MSC_VER
#pragma warning( push )
#pragma warning( disable : 4100 )
#endif
#endif


Expand Down Expand Up @@ -97,12 +99,14 @@ transition_impl::transition_impl( const event_id _event_id, vertex& _source, ver


#ifdef SX_CPP03_BOOST
#pragma warning( pop )
#ifdef _MSC_VER
#pragma warning( pop )
#endif
#endif


transition_impl::transition_impl( const event_ids _event_ids, vertex& _source, vertex& _target,
const sxy::transition_kind _kind, constraint_uptr _guard, behavior_uptr _behavior )
const sxy::transition_kind _kind, constraint_uptr _guard, behavior_uptr _behavior )
: state_machine_element_impl( get_transition_name( _source, _target, _event_ids ) ),
event_ids_( _event_ids ),
source_( _source ),
Expand Down Expand Up @@ -207,7 +211,7 @@ bool transition_impl::check_guard( const event& _event, event_collector& _event_


bool transition_impl::check( state_machine_defects& _defects ) const
{
{
bool check_ok = check_for_cross_region_transition( _defects );

if( sxy::transition_kind::INTERNAL == get_kind() )
Expand Down Expand Up @@ -371,7 +375,7 @@ bool transition_impl::check_for_cross_region_transition( state_machine_defects&
const vertex& target = get_target();
const region* const lca_of_source_target = source.LCA_region( target );
if( lca_of_source_target )
{
{
const raw_regions& source_ancestors = source.get_ancestors_as_regions();
raw_regions::const_iterator found_source_itr =
std::find( source_ancestors.begin(), source_ancestors.end(), lca_of_source_target );
Expand Down Expand Up @@ -469,7 +473,7 @@ bool transition_impl::check_initial_pseudostate( state_machine_defects& _defects
// Transition's source is a child of target's parent state or the parent state itself, when the target is an exit point.
bool transition_impl::check_exit_point( state_machine_defects& _defects ) const
{
bool check_ok = true;
bool check_ok = true;
const exit_point* const target_exit_point = dynamic_cast< const exit_point* const >( &get_target() );
if( target_exit_point )
{
Expand Down
2 changes: 1 addition & 1 deletion libyasmine/source/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace

const sxe::uint16_t VERSION_MAJOR( 1 );
const sxe::uint16_t VERSION_MINOR( 3 );
const sxe::uint16_t VERSION_PATCH( 0 );
const sxe::uint16_t VERSION_PATCH( 1 );


}
Expand Down

0 comments on commit decae15

Please sign in to comment.