mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 16:45:44 +00:00
ZoneCodeGenerator: Remove unwanted spacing from single pointer template
This commit is contained in:
parent
62ac2e8aae
commit
971d198f59
@ -7,23 +7,25 @@ $if(member.Computations.IsTempBlock)$
|
|||||||
$member.Member.VariableType.Type.FullName$* ptr = $TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$;
|
$member.Member.VariableType.Type.FullName$* ptr = $TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$;
|
||||||
$endif$$\\$
|
$endif$$\\$
|
||||||
|
|
||||||
$TypeVarName(structure.Type)$->$member.Member.Name$ = m_stream->Alloc<$TypeDeclaration(member.Member.VariableType)$$PrintFollowingReferences(reference.FollowingReferences)$>(alignof($TypeDeclaration(member.Member.VariableType)$$PrintFollowingReferences(reference.FollowingReferences)$)); // $member.Member.VariableType.Type.Alignment$
|
$TypeVarName(structure.Type)$->$member.Member.Name$ = m_stream->Alloc<$TypeDeclaration(member.Member.VariableType)$$PrintFollowingReferences(reference.FollowingReferences)$>(alignof($TypeDeclaration(member.Member.VariableType)$$PrintFollowingReferences(reference.FollowingReferences)$)); // $member.Member.VariableType.Type.Alignment$$\\$
|
||||||
$\\$
|
$\\$
|
||||||
$\\$
|
$\\$
|
||||||
$if(member.Computations.IsTempBlock)$
|
$if(member.Computations.IsTempBlock)$
|
||||||
|
|
||||||
$member.Member.VariableType.Type.FullName$** toInsert = nullptr;
|
$member.Member.VariableType.Type.FullName$** toInsert = nullptr;
|
||||||
if(ptr == PTR_INSERT)
|
if(ptr == PTR_INSERT)
|
||||||
toInsert = m_stream->InsertPointer<$member.Member.VariableType.Type.FullName$>();
|
toInsert = m_stream->InsertPointer<$member.Member.VariableType.Type.FullName$>();
|
||||||
|
|
||||||
$endif$$\\$
|
$endif$$\\$
|
||||||
|
$\\$
|
||||||
|
$\\$
|
||||||
$if(member.StructureType && !member.StructureType.IsLeaf && !member.Computations.IsRuntimeBlock)$
|
$if(member.StructureType && !member.StructureType.IsLeaf && !member.Computations.IsRuntimeBlock)$
|
||||||
|
|
||||||
$TypeVarName(member.Member.VariableType.Type)$ = $TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$;
|
$TypeVarName(member.Member.VariableType.Type)$ = $TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$;
|
||||||
Load_$member.Member.VariableType.Type.Name$(true);$\\$
|
Load_$member.Member.VariableType.Type.Name$(true);$\\$
|
||||||
$else$
|
$else$
|
||||||
m_stream->Load<$TypeDeclaration(member.Member.VariableType)$$PrintFollowingReferences(reference.FollowingReferences)$>($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$);$\\$
|
m_stream->Load<$TypeDeclaration(member.Member.VariableType)$$PrintFollowingReferences(reference.FollowingReferences)$>($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$);$\\$
|
||||||
$endif$$\\$
|
$endif$$\\$
|
||||||
|
$\\$
|
||||||
$if(member.Computations.IsTempBlock)$
|
$if(member.Computations.IsTempBlock)$
|
||||||
|
|
||||||
if(toInsert != nullptr)
|
if(toInsert != nullptr)
|
||||||
@ -45,7 +47,7 @@ if($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(referen
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$ = m_stream->ConvertOffsetToAlias($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$);
|
$TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$ = m_stream->ConvertOffsetToAlias($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$);
|
||||||
}
|
}$\\$
|
||||||
$else$
|
$else$
|
||||||
if($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$ == PTR_FOLLOWING)
|
if($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$ == PTR_FOLLOWING)
|
||||||
{
|
{
|
||||||
@ -54,7 +56,7 @@ if($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(referen
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$ = m_stream->ConvertOffsetToPointer($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$);
|
$TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$ = m_stream->ConvertOffsetToPointer($TypeVarName(structure.Type)$->$member.Member.Name$$PrintArrayIndices(reference)$);
|
||||||
}
|
}$\\$
|
||||||
$endif$
|
$endif$
|
||||||
>>
|
>>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user