16 lines
180 B
Plaintext
16 lines
180 B
Plaintext
# -*- mode: snippet -*-
|
|
# name: switch (...) { case : ... default: ...}
|
|
# key: switch
|
|
# --
|
|
switch (${1:expr})
|
|
{
|
|
case ${2:constexpr}:
|
|
{
|
|
$0
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
break;
|
|
}
|
|
} |