☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
imports
/
std15021format.d
☽
☼
gcc/testsuite/gdc.test/runnable/imports/std15021format.d
code
plain
raw
1
module imports.std15021format;
2
3
T enforceEx(T)(T value, lazy string msg = "")
4
{
5
if (!value) throw new Exception(msg);
6
return value;
7
}
8
9
void enforceValidFormatSpec(T, Char)(int spec)
10
{
11
enforceEx(spec == 's');
12
}