项目作者: xbarin02

项目描述 :
C/C++ language extensions
高级语言:
项目地址: git://github.com/xbarin02/c-ext.git
创建时间: 2017-12-22T21:04:42Z
项目社区:https://github.com/xbarin02/c-ext

开源协议:MIT License

下载


c-ext

C/C++ language extensions.

Some examples

Breaking multiple nested loops:

  1. #include <break>
  2. for (int i = 0; i < 100; i++) {
  3. for (int j = 0; j < 100; j++) {
  4. if (condition) {
  5. // break two nested enclosing loops
  6. break (2);
  7. }
  8. }
  9. }

Declarations in the do-while statement:

  1. #include <do>
  2. do (Packet packet = getPacket()) {
  3. processPacket(packet);
  4. } while (++packet);