Ignore:
Timestamp:
02/15/19 03:09:31 (5 years ago)
Author:
Maciej Komosinski
Message:

The official C++17 fallthrough? attribute instead of comments no break

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fL/fL_oper.cpp

    r821 r853  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2019  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    313313                        // if there are no rules - create one
    314314                }
    315                 /* no break */
     315                [[fallthrough]];
    316316                case FL_ADD_RULE:
    317317                {
     
    387387                        // if there are no words, from which rules can be formed, then add one
    388388                }
    389                 /* no break */
     389                [[fallthrough]];
    390390                case FL_ADD_WDEF:
    391391                {
     
    411411                        // deletion should be performed
    412412                }
    413                 /* no break */
     413                [[fallthrough]];
    414414                case FL_DEL_WORD:
    415415                {
     
    476476                        // if no words available, then add word
    477477                }
    478                 /* no break */
     478                [[fallthrough]];
    479479                case FL_ADD_WORD:
    480480                {
Note: See TracChangeset for help on using the changeset viewer.