mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
15 lines
195 B
D
15 lines
195 B
D
void msgpackToGValue(MsgValue input)
|
|
{
|
|
with (MsgValue.Type) switch (input.type)
|
|
{
|
|
case boolean:
|
|
a();
|
|
break;
|
|
case unsigned:
|
|
b();
|
|
break;
|
|
default:
|
|
assert(false);
|
|
}
|
|
return retVal;
|
|
}
|