added userdata void * for parser tag function callback

This commit is contained in:
herbglitch 2024-11-20 13:50:52 -07:00
parent 606f8e4bad
commit fcc07493d3
4 changed files with 25 additions and 21 deletions

View file

@ -205,7 +205,7 @@ ARC_Bool ARC_Parser_ParseTag(ARC_Parser *parser, uint32_t *lexerIndex, uint32_t
//iterate through the tokens with the add callback
for(uint32_t index = 0; index < ARC_Vector_GetSize(foundTokens); index++){
ARC_LexerToken *token = (ARC_LexerToken *)ARC_Vector_Get(foundTokens, index);
(*(tag->addDataFn))(&(parser->data), tagId, token);
(*(tag->addDataFn))(&(parser->data), tagId, token, tag->addUserData);
}
}