Skip to content

Instantly share code, notes, and snippets.

@wader
Created October 31, 2025 11:20
Show Gist options
  • Save wader/cf0ed0d522fadea034ac6fdba9a5dc87 to your computer and use it in GitHub Desktop.
Save wader/cf0ed0d522fadea034ac6fdba9a5dc87 to your computer and use it in GitHub Desktop.
C dev
IndentWidth: 4
CompileFlags:
Add:
- "-I/Users/wader/src/FFmpeg"
- "-I/opt/homebrew/Cellar/protobuf-c/1.5.2_5/include"
{
"printf ": {
"prefix": "pf",
"body": " printf(\"${1:format}\\\\n\");$0"
},
"fprintf stderr ": {
"prefix": "pfe",
"body": " fprintf(stderr, \"${1:format}\\\\n\");$0"
},
"av_log": {
"prefix": "al",
"body": "av_log(NULL, AV_LOG_DEBUG, \"${1:format}\\\\n\");$0",
},
"dump_struct": {
"prefix": "ds",
"body": "__builtin_dump_struct($1, &printf);$0",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment