Skip to content

Commit cc77a81

Browse files
Aster89lpil
authored andcommitted
Snippet for #pragma once include guard
It is non-standard, but most (all?) compilers implement it. See also https://en.wikipedia.org/wiki/Pragma_once#Portability
1 parent 7a26856 commit cc77a81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UltiSnips/cpp.snippets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ endglobal
3030
###########################################################################
3131
# TextMate Snippets #
3232
###########################################################################
33+
snippet ponce "#pragma once include guard"
34+
#pragma once
35+
36+
endsnippet
37+
3338
snippet main
3439
int main(int argc, char *argv[])
3540
{

0 commit comments

Comments
 (0)