Remove double underscore from c header templates
Using double underscore for an identifier in C/C++ invokes undefined behavior. From https://eel.is/c++draft/lex.name: Each identifier that contains a double underscore __ or begins with an underscore followed by an uppercase letter is reserved to the implementation for any use.
This commit is contained in:
parent
46dedb3e33
commit
704aa4ebde
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# group: file templates
|
# group: file templates
|
||||||
# contributor: Henrik Lissner
|
# contributor: Henrik Lissner
|
||||||
# --
|
# --
|
||||||
#ifndef ${1:__`(upcase (file-name-base buffer-file-name))`_H_$(upcase yas-text)}
|
#ifndef ${1:`(upcase (file-name-base buffer-file-name))`_H_$(upcase yas-text)}
|
||||||
#define $1
|
#define $1
|
||||||
|
|
||||||
$0
|
$0
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# group: file templates
|
# group: file templates
|
||||||
# contributor: Henrik Lissner
|
# contributor: Henrik Lissner
|
||||||
# --
|
# --
|
||||||
#ifndef ${1:__`(upcase (file-name-base buffer-file-name))`_H_$(upcase yas-text)}
|
#ifndef ${1:`(upcase (file-name-base buffer-file-name))`_H_$(upcase yas-text)}
|
||||||
#define $1
|
#define $1
|
||||||
|
|
||||||
$0
|
$0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue