Skip to content

Instantly share code, notes, and snippets.

@imaami
Created July 20, 2023 20:45
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 imaami/f0d7e801327d4eb149f442140aa62462 to your computer and use it in GitHub Desktop.
Save imaami/f0d7e801327d4eb149f442140aa62462 to your computer and use it in GitHub Desktop.
#include <#include> /* because why not? */
#!/usr/bin/bash
printf '%s\n' "int main(void) { puts(strchr(__FILE__, '#') ?: __FILE__); }" > './#include'
printf '#include <%s>\n' 'stdio.h' 'string.h' '#include' | cc -I. -o./includeinclude -xc -
./includeinclude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment