]> git.siccegge.de Git - snippets.git/commitdiff
Add include guard master
authorChristoph Egger <christoph@christoph-egger.org>
Fri, 20 Feb 2015 17:02:03 +0000 (18:02 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Fri, 20 Feb 2015 17:02:03 +0000 (18:02 +0100)
c++-mode/include-guard.yasnippet [new file with mode: 0644]

diff --git a/c++-mode/include-guard.yasnippet b/c++-mode/include-guard.yasnippet
new file mode 100644 (file)
index 0000000..6dfb304
--- /dev/null
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: include-guard
+# key: iguard
+# --
+#ifndef ${1:INCLUDE__`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`_hxx_}
+#define $1
+
+$0
+
+#endif /* $1 */
\ No newline at end of file