Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 443 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 443 Bytes

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);