aboutsummaryrefslogtreecommitdiff
path: root/.vim/c-support/templates/c.preprocessor.template
blob: 3ec674abc0e3db59132d65d0c1f9e488b8048d11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$-------------------------------------------------------------------------
== preprocessor.define ==
#define	<CURSOR>			/*  */
$-------------------------------------------------------------------------
== preprocessor.undefine ==
#undef	<CURSOR>			/*  */
$-------------------------------------------------------------------------
== preprocessor.if-else-endif ==
#if  |?CONDITION:u|
<CURSOR><SPLIT>
#else      /* -----  not |CONDITION|  ----- */

#endif     /* -----  not |CONDITION|  ----- */
$-------------------------------------------------------------------------
== preprocessor.ifdef-else-endif ==
#ifdef  |?CONDITION:u|
<CURSOR><SPLIT>
#else      /* -----  not |CONDITION|  ----- */

#endif     /* -----  not |CONDITION|  ----- */
$-------------------------------------------------------------------------
== preprocessor.ifndef-else-endif ==
#ifndef  |?CONDITION:u|
<CURSOR><SPLIT>
#else      /* -----  not |CONDITION|  ----- */

#endif     /* -----  not |CONDITION|  ----- */
$-------------------------------------------------------------------------
== preprocessor.ifndef-def-endif ==
#ifndef  |?BASENAME:L|_INC
#define  |BASENAME|_INC
<CURSOR><SPLIT>
#endif   /* ----- #ifndef |BASENAME|_INC  ----- */
$-------------------------------------------------------------------------