1
0
Fork 0
mirror of synced 2024-11-23 17:25:35 -05:00
ultimate-vim/vim_plugins_src/cvim/c-support/templates/c.preprocessor.template

54 lines
2.1 KiB
Text

$-------------------------------------------------------------------------
== preprocessor.include-global == insert ==
#include <<CURSOR>>
$-------------------------------------------------------------------------
== preprocessor.include-local == insert ==
#include "<CURSOR>"
$-------------------------------------------------------------------------
== preprocessor.define == insert ==
#define <CURSOR> /* */
$-------------------------------------------------------------------------
== preprocessor.undefine == insert ==
#undef <CURSOR> /* */
$-------------------------------------------------------------------------
== preprocessor.if-endif ==
#if |?CONDITION:u|
<CURSOR><SPLIT>
#endif /* ----- |CONDITION| ----- */
$-------------------------------------------------------------------------
== 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> /* */
$-------------------------------------------------------------------------