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/f4/f4_general.cpp

    r830 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
     
    300300                                }
    301301                        }
    302                                 /* no break */
     302                        [[fallthrough]];
    303303                        case '#':
    304304                        {
     
    522522                                break;
    523523                        }
    524                         wait_link:
     524                wait_link:
    525525                        {
    526526                                // wait for other neurons to develop
     
    537537                                gcur = gcur->child;
    538538                        }
    539                                 break;
     539                        break;
    540540                        case ':':
    541541                        {
     
    16241624                if (root->child)
    16251625                {
    1626                 char* buf = (char*)malloc(300);
    1627                 DB(printf("(%d) ", root->child->count());)
    1628                         buf[0] = 0;
    1629                 root->child->sprintAdj(buf);
    1630                 DB(printf("%s\n", buf);)
    1631                         free(buf);
     1626                        char* buf = (char*)malloc(300);
     1627                        DB(printf("(%d) ", root->child->count());)
     1628                                buf[0] = 0;
     1629                        root->child->sprintAdj(buf);
     1630                        DB(printf("%s\n", buf);)
     1631                                free(buf);
    16321632                }
    16331633        )
Note: See TracChangeset for help on using the changeset viewer.