From 289a5868628343921d45ad6218eef8d2bb622047 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 20 Feb 2015 18:02:03 +0100 Subject: [PATCH 1/1] Add include guard --- c++-mode/include-guard.yasnippet | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 c++-mode/include-guard.yasnippet diff --git a/c++-mode/include-guard.yasnippet b/c++-mode/include-guard.yasnippet new file mode 100644 index 0000000..6dfb304 --- /dev/null +++ b/c++-mode/include-guard.yasnippet @@ -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 -- 2.39.5