We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecc90b8 commit 4f9f9e7Copy full SHA for 4f9f9e7
snippets/c-lang-common/once
@@ -2,7 +2,7 @@
2
# name: #ifndef XXX; #define XXX; #endif
3
# key: once
4
# --
5
-#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) ""))))`_H}
+#ifndef ${1:`(upcase (replace-regexp-in-string "[^A-Za-z0-9_]" "_" (file-name-nondirectory (or (buffer-file-name)))))`}
6
#define $1
7
8
$0
0 commit comments