-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #494 from elbeno/gen-str-extras
✨ Add capabilities to gen_str_catalog.py
- Loading branch information
Showing
6 changed files
with
88 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "catalog_concurrency.hpp" | ||
|
||
#include <conc/concurrency.hpp> | ||
#include <log/catalog/mipi_encoder.hpp> | ||
|
||
#include <cstdint> | ||
|
||
template <> inline auto conc::injected_policy<> = test_conc_policy{}; | ||
|
||
extern int log_calls; | ||
|
||
namespace { | ||
struct test_log_args_destination { | ||
auto log_by_args(std::uint32_t, auto...) -> void { ++log_calls; } | ||
}; | ||
} // namespace | ||
|
||
auto log_two_rt_args() -> void; | ||
|
||
auto log_two_rt_args() -> void { | ||
auto cfg = logging::mipi::config{test_log_args_destination{}}; | ||
cfg.logger.log_msg<logging::level::TRACE>( | ||
format("D string with {} and {} placeholder"_sc, 1, 2)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extra_key": "extra_value" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters