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

10 lines
122 B
Plaintext

# -*- mode: snippet -*-
# name: Protect with ifdef
# key: defprot
# --
#ifndef ${1:name}
# define $1
$0
#endif /* $1 */