Add extern "C" block snippet
This commit is contained in:
parent
287e52fb2a
commit
83114d25a9
@ -92,3 +92,15 @@ endsnippet
|
|||||||
snippet printf_sv "printf for std::string_view"
|
snippet printf_sv "printf for std::string_view"
|
||||||
printf("$1: %.*s\n", static_cast<int>(${1:view}.size()), $1.data());$0
|
printf("$1: %.*s\n", static_cast<int>(${1:view}.size()), $1.data());$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet externc "extern C block"
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
$0
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
endsnippet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user