| 422 | // Provide simple value accessors with default option |
| 423 | static char* stringval(const char c, char * const dval=nullptr) { return seenval(c) ? value_string() : dval; } |
| 424 | static float floatval(const char c, const float dval=0.0) { return seenval(c) ? value_float() : dval; } |
| 425 | static bool boolval(const char c, const bool dval=false) { return seenval(c) ? value_bool() : (seen(c) ? true : dval); } |
| 426 | static uint8_t byteval(const char c, const uint8_t dval=0) { return seenval(c) ? value_byte() : dval; } |
| 427 | static int16_t intval(const char c, const int16_t dval=0) { return seenval(c) ? value_int() : dval; } |
no outgoing calls
no test coverage detected