Debian Codegraph @

tests/dmd/runnable/imports/std15021format.d

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 }