summaryrefslogtreecommitdiffstats
path: root/.vim/c-support/templates/c.preprocessor.template
blob: f3aa127c27d82288899b41067ffb741aa8999ca9 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$-------------------------------------------------------------------------
== preprocessor.include-global ==
#include	<<CURSOR>>
$-------------------------------------------------------------------------
== preprocessor.include-local ==
#include	"<CURSOR>"
$-------------------------------------------------------------------------
== preprocessor.define ==
#define	<CURSOR>			/*  */
$-------------------------------------------------------------------------
== preprocessor.undefine ==
#undef	<CURSOR>			/*  */
$-------------------------------------------------------------------------
== preprocessor.if-else-endif ==
#if  |?CONDITION:u|
<CURSOR><SPLIT>
#else      /* -----  not |CONDITION|  ----- */
<+ELSE PART+>
#endif     /* -----  not |CONDITION|  ----- */
$-------------------------------------------------------------------------
== preprocessor.ifdef-else-endif ==
#ifdef  |?CONDITION:u|
<CURSOR><SPLIT>
#else      /* -----  not |CONDITION|  ----- */
<+ELSE PART+>
#endif     /* -----  not |CONDITION|  ----- */
$-------------------------------------------------------------------------
== preprocessor.ifndef-else-endif ==
#ifndef  |?CONDITION:u|
<CURSOR><SPLIT>
#else      /* -----  not |CONDITION|  ----- */
<+ELSE PART+>
#endif     /* -----  not |CONDITION|  ----- */
$-------------------------------------------------------------------------
== preprocessor.ifndef-def-endif ==
#ifndef  |?BASENAME:L|_INC
#define  |BASENAME|_INC
<CURSOR><SPLIT>
#endif   /* ----- #ifndef |BASENAME|_INC  ----- */
$-------------------------------------------------------------------------
== preprocessor.error ==
#error	"<CURSOR>"			/*  */
$-------------------------------------------------------------------------
== preprocessor.line ==
#line	<CURSOR>			/*  */
$-------------------------------------------------------------------------
== preprocessor.pragma ==
#pragma	<CURSOR>			/*  */
$-------------------------------------------------------------------------