1. Fuco
  2. .emacs.d

Source

.emacs.d / vendor / yasnippet / snippets / cc-mode / once

1
2
3
4
5
6
7
8
9
# name: #ifndef XXX; #define XXX; #endif
# key: once
# --
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_}
#define $1

$0

#endif /* $1 */