diff --git a/snippets/c.lua b/snippets/c.lua index ae0b763..aceafa4 100644 --- a/snippets/c.lua +++ b/snippets/c.lua @@ -45,6 +45,12 @@ local snippets = { end, key('guard')), }, {}), + snippet('externc', { + text({ '#ifdef __cplusplus', 'extern "C" {', '#endif', '', '' }), + insert(0, ''), + text({ '', '', '#ifdef __cplusplus', '}', '#endif' }), + }), + -- Doxygen snippet('p', { text('@param'),