emacs/.emacs.d/snippets/c-mode/guards

12 lines
332 B
Plaintext
Raw Normal View History

2018-01-10 12:26:56 -05:00
# -*- mode: snippet; require-final-newline: nil -*-
# name: guards
# key: gaurds
# expand-env: (gaurd-name (upcase (replace-regexp-in-string "\\." "_" (file-name-nondirectory (buffer-file-name)))))
# --
#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H}
#define $1
$0
#endif /* $1 */