Set indexes directly rather than incrementing step by step
This commit is contained in:
@@ -73,6 +73,7 @@ class YamlTreeWalker
|
||||
|
||||
void incAttr() { stack[stack_level].attr_idx++; }
|
||||
void incElmts() { stack[stack_level].elmts++; }
|
||||
void setElmts(uint16_t idx) { stack[stack_level].elmts = idx; }
|
||||
|
||||
inline bool isIdxInvalid() {
|
||||
return stack[stack_level].flags & FLAG_STATE_IDX_INVALID;
|
||||
|
||||
Reference in New Issue
Block a user