Changeset f0234e


Ignore:
Timestamp:
Dec 26, 2025, 9:40:14 PM (34 hours ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
bdd1d0
Parents:
4538c0
git-author:
Frederik Heber <frederik.heber@…> (11/25/25 08:04:41)
git-committer:
Frederik Heber <frederik.heber@…> (12/26/25 21:40:14)
Message:

FIX: StoreSession action ignores unset parameters.

  • those parameters are not written now at all, neither as options on the command-line, nor as parameters to the python function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Action_impl_pre.hpp

    r4538c0 rf0234e  
    154154// prints command line call for this Action for paramtypes with tokens
    155155#define outputAsCLI_print(z,n,output) \
    156     output << \
    157     BOOST_PP_IF(n, " --", "--") \
    158     << \
    159     BOOST_PP_SEQ_ELEM(n, paramtokens) \
    160     << " " << toCLIString(params. \
    161         BOOST_PP_SEQ_ELEM(n, paramreferences) \
    162         .get());
     156    if ( \
     157      params. \
     158      BOOST_PP_SEQ_ELEM(n, paramreferences) \
     159          .isSet() \
     160    ) { \
     161      output << \
     162      BOOST_PP_IF(n, " --", "--") \
     163      << \
     164      BOOST_PP_SEQ_ELEM(n, paramtokens) \
     165      << " " << toCLIString(params. \
     166          BOOST_PP_SEQ_ELEM(n, paramreferences) \
     167          .get()); \
     168    }
    163169
    164170// prints if statement to check two strings (paramtokens[n] vs. TOKEN)
     
    171177// prints command line call for this Action for paramtypes with tokens
    172178#define outputAsPython_print(z,n,output) \
    173     output << \
    174     BOOST_PP_IF(n, ", ", "") \
    175     << normalizeToken( BOOST_PP_SEQ_ELEM(n, paramtokens) ) \
    176     << "=" \
    177     << "\"" << params. \
    178         BOOST_PP_SEQ_ELEM(n, paramreferences) \
    179           .getAsStringUnvalidated() \
    180     << "\""; \
     179    if ( \
     180      params. \
     181      BOOST_PP_SEQ_ELEM(n, paramreferences) \
     182          .isSet() \
     183    ) { \
     184      output << \
     185      BOOST_PP_IF(n, ", ", "") \
     186      << normalizeToken( BOOST_PP_SEQ_ELEM(n, paramtokens) ) \
     187      << "=" \
     188      << "\"" << params. \
     189          BOOST_PP_SEQ_ELEM(n, paramreferences) \
     190            .getAsStringUnvalidated() \
     191      << "\""; \
     192    }
    181193
    182194// print an initialiser list, i.e. "var( token, valid (,default) )(,)"
Note: See TracChangeset for help on using the changeset viewer.