Skip to content

Instantly share code, notes, and snippets.

View tankery's full-sized avatar

Tankery tankery

View GitHub Profile
<snippet>
<description>ifndef (…)</description>
<content><![CDATA[#ifndef $1
#define ${1:${TM_FILEPATH/(([A-Za-z]+)\/((inc)|(include)|(src)|(source))\/)|./\U(?1:$2_)\E/g}${TM_FILENAME/(([A-Z])([A-Z][a-z]))|(([a-z])([A-Z]))|([a-z])|(\.)/\U(?1:$2_$3)(?4:$5_$6)$7(?8:_)\E/g}}
${0:$SELECTION}
#endif // $1
]]></content>