Add custom YAS snippets
This commit is contained in:
10
snippets/c-mode/ifdef-protect
Normal file
10
snippets/c-mode/ifdef-protect
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Protect with ifdef
|
||||
# key: defprot
|
||||
# --
|
||||
#ifndef ${1:name}
|
||||
# define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif /* $1 */
|
Reference in New Issue
Block a user