Don't need to pop in reject
This commit is contained in:
@@ -517,10 +517,7 @@ private:
|
|||||||
MUSTTAIL return table[top][token](self);
|
MUSTTAIL return table[top][token](self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool reject(Parser2 *self) {
|
static bool reject(Parser2 *) { return false; }
|
||||||
self->pop();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
static bool object(Parser2 *self) {
|
static bool object(Parser2 *self) {
|
||||||
self->pop();
|
self->pop();
|
||||||
self->callbacks->on_begin_object(self->data);
|
self->callbacks->on_begin_object(self->data);
|
||||||
|
|||||||
Reference in New Issue
Block a user