mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05:00
forward declare every struct and union to be able to self-reference
This commit is contained in:
@ -48,6 +48,8 @@ void HeaderBlockUnion::OnOpen(HeaderParserState* state)
|
||||
{
|
||||
state->m_namespace.Push(m_type_name);
|
||||
}
|
||||
|
||||
state->AddForwardDeclaration(std::make_unique<ForwardDeclaration>(m_namespace, m_type_name, DataDefinitionType::UNION));
|
||||
}
|
||||
|
||||
void HeaderBlockUnion::OnClose(HeaderParserState* state)
|
||||
|
Reference in New Issue
Block a user