Skip to content

Commit

Permalink
Snippet for #pragma once include guard
Browse files Browse the repository at this point in the history
It is non-standard, but most (all?) compilers implement it.

See also https://en.wikipedia.org/wiki/Pragma_once#Portability
  • Loading branch information
Aster89 authored and lpil committed Sep 11, 2022
1 parent 7a26856 commit cc77a81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UltiSnips/cpp.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ endglobal
###########################################################################
# TextMate Snippets #
###########################################################################
snippet ponce "#pragma once include guard"
#pragma once

endsnippet

snippet main
int main(int argc, char *argv[])
{
Expand Down

0 comments on commit cc77a81

Please sign in to comment.