Skip to content

xbarin02/c-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published