Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
imports
/
std15021format.d
blob: 8493646d863cf804ca0d415bc621653c36dae231 [
file
] [
log
] [
blame
]
module
imports
.
std15021format
;
T enforceEx
(
T
)(
T value
,
lazy
string
msg
=
""
)
{
if
(!
value
)
throw
new
Exception
(
msg
);
return
value
;
}
void
enforceValidFormatSpec
(
T
,
Char
)(
int
spec
)
{
enforceEx
(
spec
==
's'
);
}