mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-07-01 08:41:52 +00:00
forward declare every struct and union to be able to self-reference
This commit is contained in:
@ -48,6 +48,8 @@ void HeaderBlockStruct::OnOpen(HeaderParserState* state)
|
||||
{
|
||||
state->m_namespace.Push(m_type_name);
|
||||
}
|
||||
|
||||
state->AddForwardDeclaration(std::make_unique<ForwardDeclaration>(m_namespace, m_type_name, DataDefinitionType::STRUCT));
|
||||
}
|
||||
|
||||
void HeaderBlockStruct::OnClose(HeaderParserState* state)
|
||||
|
@ -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