mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
CommandsRepository
This commit is contained in:
parent
e1a083015e
commit
022c97b200
4 changed files with 58 additions and 8 deletions
|
|
@ -154,8 +154,13 @@ void BasicParser::expectNewLine() {
|
|||
}
|
||||
}
|
||||
|
||||
void BasicParser::goBack() {
|
||||
if (pos) pos--;
|
||||
void BasicParser::goBack(size_t count) {
|
||||
if (pos < count) {
|
||||
throw std::runtime_error("pos < jump");
|
||||
}
|
||||
if (pos) {
|
||||
pos -= count;
|
||||
}
|
||||
}
|
||||
|
||||
char BasicParser::peek() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue