2020-08-19 15:51:25 +02:00
|
|
|
snippet once "Include header once only guard"
|
|
|
|
#ifndef ${1:`!p
|
|
|
|
if not snip.c:
|
|
|
|
import random, string
|
|
|
|
name = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()
|
|
|
|
snip.rv = name.upper()
|
|
|
|
else:
|
|
|
|
snip.rv = snip.c`}
|
2020-09-21 16:18:56 +02:00
|
|
|
#define $1
|
2020-08-19 15:51:25 +02:00
|
|
|
|
|
|
|
${0}
|
|
|
|
|
|
|
|
#endif /* !$1 */
|
|
|
|
endsnippet
|