Created
July 13, 2021 17:46
-
-
Save tinytengu/37d4342f44fd569ec2855a082d855c12 to your computer and use it in GitHub Desktop.
[VSCode Snippet] C++ header file #ifndef pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Header #ifndef pattern": { | |
"prefix": "hdef", | |
"body": [ | |
"#ifndef _H_${TM_FILENAME/(.*)[.][h]$/${1:/upcase}/}", | |
"#define _H_${TM_FILENAME/(.*)[.][h]$/${1:/upcase}/}", | |
"\n${1:/* content */}\n", | |
"#endif" | |
], | |
"description": "Header file pattern to preserve reinclude" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment