☰
Debian Codegraph
@
1:1.42.0-2.1
1:1.42.0-2
/
/
tests
/
dmd
/
runnable
/
imports
/
std15021format.d
☽
☼
tests/dmd/runnable/imports/std15021format.d
code
plain
raw
BSD-3-Clause
and
BSL-1.0
and
LLVM
(c) 2007-2025 LDC Team; David Nadlinger,; Kai Nacke,; Tomas Lindquist Olsen,; Kinke,; Johan Engelen,; Alexey Prokhin
debian/copyright
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
}