rename input/output
This commit is contained in:
@@ -6,11 +6,11 @@ BadInstruction::BadInstruction(char const* what)
|
||||
: std::runtime_error{what} {}
|
||||
|
||||
auto StepInput(Machine & m, ValueType input) -> void {
|
||||
std::get<Input>(Step(m)).pos = input;
|
||||
std::get<Input>(Step(m)).input = input;
|
||||
}
|
||||
|
||||
auto StepOutput(Machine & m) -> ValueType {
|
||||
return std::get<Output>(Step(m)).val;
|
||||
return std::get<Output>(Step(m)).output;
|
||||
}
|
||||
|
||||
auto Step(Machine & m) -> std::variant<Input, Output, Halt> {
|
||||
|
Reference in New Issue
Block a user