Skip to content

Instantly share code, notes, and snippets.

@KPCCoiL
Created August 14, 2014 09:11
Show Gist options
  • Save KPCCoiL/0bf7897000cce0740719 to your computer and use it in GitHub Desktop.
Save KPCCoiL/0bf7897000cce0740719 to your computer and use it in GitHub Desktop.
#include <iostream>
#define for _FOR_BROKEN=0;for
#define break {_FOR_BROKEN=1;break;}
#define ELSE if(!_FOR_BROKEN)
bool _FOR_BROKEN;
using namespace std;
int main() {
for (int i = 0; i < 10; i++) {
cout << i << endl;
if(i == 5) break;
}
ELSE cout << "not broken" << endl;
for (int i = 0; i < 10; i++)
cout << i << endl;
ELSE cout << "not broken" << endl;
return 0;
}
@oddbean
Copy link

oddbean commented Aug 14, 2014

123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment