pmt: Minor changes.
- Add build instruction. - Improve function lambdas.
This commit is contained in:
@@ -58,9 +58,7 @@ INIT(infoFunction) {
|
||||
|
||||
RUN(infoFunction) {
|
||||
std::vector<PartitionMap::Partition_t> jParts;
|
||||
auto func = [this,
|
||||
&jParts](std::string partition,
|
||||
const PartitionMap::Map_t::BasicInf props) -> bool {
|
||||
auto func = [this, &jParts] COMMON_LAMBDA_PARAMS -> bool {
|
||||
if (Variables->onLogical && !props.isLogical) {
|
||||
if (Variables->forceProcess)
|
||||
LOGN(IFUN, WARNING)
|
||||
|
||||
@@ -60,8 +60,7 @@ INIT(partitionSizeFunction) {
|
||||
}
|
||||
|
||||
RUN(partitionSizeFunction) {
|
||||
auto func = [this](std::string partition,
|
||||
PartitionMap::Map_t::BasicInf props) -> bool {
|
||||
auto func = [this] COMMON_LAMBDA_PARAMS -> bool {
|
||||
if (Variables->onLogical && !props.isLogical) {
|
||||
if (Variables->forceProcess)
|
||||
LOGN(SFUN, WARNING)
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
bool cls::isUsed() const { return cmd->parsed(); }
|
||||
#define NAME(cls) const char *cls::name() const
|
||||
|
||||
#define COMMON_LAMBDA_PARAMS \
|
||||
(std::string partition, const PartitionMap::Map_t::BasicInf props)
|
||||
#define COMMON_FUNCTION_BODY() \
|
||||
CLI::App *cmd = nullptr; \
|
||||
bool init(CLI::App &_app) override; \
|
||||
|
||||
Reference in New Issue
Block a user