Skip to content
C/C++ language extensions
Branch: master
Clone or download
Latest commit 1aaddc4 Feb 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples coding style Dec 23, 2017
include fixed the last commit Dec 23, 2017
README.md Update README.md Feb 7, 2019

README.md

c-ext

C/C++ language extensions.

Some examples

Breaking multiple nested loops:

#include <break>

for (int i = 0; i < 100; i++) {
    for (int j = 0; j < 100; j++) {
        if (condition) {
            // break two nested enclosing loops
            break (2);
        }
    }
}

Declarations in the do-while statement:

#include <do>

do (Packet packet = getPacket()) {
    processPacket(packet);
} while (++packet);

You can’t perform that action at this time.