Skip to content

Instantly share code, notes, and snippets.

Created March 12, 2013 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5144471 to your computer and use it in GitHub Desktop.
Save anonymous/5144471 to your computer and use it in GitHub Desktop.
php instead of c preprocessor
php test.c | gcc -xc -o test -
<?php include_once('/usr/include/stdio.h'); ?>
int main() {
<?php for ($i = 0; $i < 10; ++$i) { ?>
printf("Hello, world!\n");
<?php } ?>
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment