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.
10 lines
191 B
Text
10 lines
191 B
Text
# -*- mode: snippet -*-
|
|
# group: file templates
|
|
# contributor: Henrik Lissner
|
|
# --
|
|
#ifndef ${1:`(upcase (file-name-base buffer-file-name))`_H_$(upcase yas-text)}
|
|
#define $1
|
|
|
|
$0
|
|
|
|
#endif // $1
|