Skip to content

Instantly share code, notes, and snippets.

@agrif
Created November 11, 2011 04:31
Show Gist options
  • Save agrif/1357200 to your computer and use it in GitHub Desktop.
Save agrif/1357200 to your computer and use it in GitHub Desktop.
#include <stdio.h>
@myfor(statement initializer; expression condition; statement increment)
{
initializer;
while (condition)
{
block;
increment;
}
}
int main(int argc, char* argv[])
{
myfor(int i = 0; i < 10; i++)
{
printf("hello %i\n", i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment