Add an extern "C" block snippet
This commit is contained in:
@@ -45,6 +45,12 @@ local snippets = {
|
|||||||
end, key('guard')),
|
end, key('guard')),
|
||||||
}, {}),
|
}, {}),
|
||||||
|
|
||||||
|
snippet('externc', {
|
||||||
|
text({ '#ifdef __cplusplus', 'extern "C" {', '#endif', '', '' }),
|
||||||
|
insert(0, ''),
|
||||||
|
text({ '', '', '#ifdef __cplusplus', '}', '#endif' }),
|
||||||
|
}),
|
||||||
|
|
||||||
-- Doxygen
|
-- Doxygen
|
||||||
snippet('p', {
|
snippet('p', {
|
||||||
text('@param'),
|
text('@param'),
|
||||||
|
|||||||
Reference in New Issue
Block a user