When parsing a macro, store its offset and number of actions

This commit is contained in:
Eric Tang
2017-08-09 09:49:30 -07:00
parent 1c91a7d5d9
commit c983e58d8e
5 changed files with 36 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ parser_error_t ParseConfig(config_buffer_t *buffer)
}
macroCount = readCompactLength(buffer);
for (uint16_t macroIdx = 0; macroIdx < macroCount; macroIdx++) {
errorCode = ParseMacro(buffer);
errorCode = ParseMacro(buffer, macroIdx);
if (errorCode != ParserError_Success) {
return errorCode;
}