my-emacs-d/snippets/c-mode/ifdef-protect

10 lines
122 B
Plaintext
Raw Permalink Normal View History

2017-11-29 12:47:31 +00:00
# -*- mode: snippet -*-
# name: Protect with ifdef
# key: defprot
# --
#ifndef ${1:name}
# define $1
$0
#endif /* $1 */