Updated C++ templates.

This commit is contained in:
tastytea 2019-09-25 03:38:21 +02:00
parent 0f19b47daf
commit 058a937f13
2 changed files with 5 additions and 1 deletions

View File

@ -16,3 +16,4 @@
#include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.hpp"
using namespace ${2:`(projectile-project-name)`};

View File

@ -17,6 +17,9 @@
#ifndef ${1:`(upcase (replace-regexp-in-string "-" "_" (projectile-project-name)))`_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_`(upcase (file-name-extension (buffer-file-name)))`}
#define $1
$0
namespace ${2:`(projectile-project-name)`}
{
$0
} // namespace $2
#endif // $1