1
0
Fork 0
mirror of synced 2024-07-01 21:11:09 -04:00
ultimate-vim/vim_plugins_src/cvim/c-support/templates/cpp.preprocessor.template

55 lines
2.1 KiB
Plaintext

$-------------------------------------------------------------------------
== preprocessor.include-global ==
#include <<CURSOR>>
$-------------------------------------------------------------------------
== preprocessor.include-local ==
#include "<CURSOR>"
$-------------------------------------------------------------------------
== preprocessor.define ==
#define <CURSOR> //
$-------------------------------------------------------------------------
== preprocessor.undefine ==
#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> //
$-------------------------------------------------------------------------