| 56 | } |
| 57 | |
| 58 | int PendingMessage::PushChoice(std::string msg, bool enabled) { |
| 59 | assert(!HasNumberInput()); |
| 60 | if (!HasChoices()) { |
| 61 | choice_start = NumLines(); |
| 62 | } |
| 63 | choice_enabled[GetNumChoices()] = enabled; |
| 64 | return PushLineImpl(std::move(msg)); |
| 65 | } |
| 66 | |
| 67 | int PendingMessage::PushNumInput(int variable_id, int num_digits) { |
| 68 | assert(!HasChoices()); |
no outgoing calls
no test coverage detected