Line | Branch | Exec | Source |
---|---|---|---|
1 | #pragma once | ||
2 | |||
3 | #include <spdlog/fmt/bundled/ostream.h> | ||
4 | |||
5 | #include "dtypes.h" | ||
6 | |||
7 | namespace lython { | ||
8 | using FmtStr = fmt::string_view; | ||
9 | |||
10 | template <typename... Args> | ||
11 | String fmtstr(FmtStr fmtstr, Args&&... args) { | ||
12 |
1/2✓ Branch 1 taken 334 times.
✗ Branch 2 not taken.
|
660 | StringStream ss; |
13 |
1/2✓ Branch 1 taken 334 times.
✗ Branch 2 not taken.
|
660 | fmt::print(ss, fmtstr, args...); |
14 |
1/2✓ Branch 1 taken 334 times.
✗ Branch 2 not taken.
|
1320 | return ss.str(); |
15 | 660 | } | |
16 | } // namespace lython | ||
17 |