12 lines
332 B
Plaintext
12 lines
332 B
Plaintext
|
# -*- 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 */
|