| 111 | } |
| 112 | |
| 113 | bool Parser::set_specialfunctionValuePayload(const char* function_name, func_tValuePayload function, std::shared_ptr<Payload> payload) { |
| 114 | DEBUG_PARSER("PARSER: set_specialfunctionValuePayload()"); |
| 115 | |
| 116 | auto* ptr = get_variable_symbol(function_name); |
| 117 | if (!ptr) // function name not found |
| 118 | return false; |
| 119 | assert(std::get<special_function_def>(ptr->value).funsptr->argc == 1); |
| 120 | std::get<special_function_def>(ptr->value).funsptr->fnct = function; |
| 121 | std::get<special_function_def>(ptr->value).funsptr->name = function_name; |
| 122 | std::get<special_function_def>(ptr->value).payload = payload; |
| 123 | return true; |
| 124 | } |
| 125 | |
| 126 | bool Parser::set_specialfunction2ValuePayload(const char* function_name, func_t2ValuePayload function, std::shared_ptr<Payload> payload) { |
| 127 | DEBUG_PARSER("PARSER: set_specialfunction2ValuePayload()"); |
nothing calls this directly
no test coverage detected