\hypertarget{a00455}{}\doxysection{AAX\+\_\+\+Push8\+Byte\+Struct\+Alignment.\+h File Reference}
\label{a00455}\index{AAX\_Push8ByteStructAlignment.h@{AAX\_Push8ByteStructAlignment.h}}


\doxysubsection{Description}
Set the struct alignment to 8-\/byte. 

When setting the alignment for a struct in order to match a particular environment (e.\+g. host/plug-\/in binary compatibility) the following macros are recommended\+: \begin{DoxyItemize}
\item \mbox{\hyperlink{a00542_acbef7ed7d077bc9812cb56417e1ad325}{AAX\+\_\+\+ALIGN\+\_\+\+FILE\+\_\+\+HOST}} \item \mbox{\hyperlink{a00542_a8fbeac3c5db5ac694e85a021ed74dc9e}{AAX\+\_\+\+ALIGN\+\_\+\+FILE\+\_\+\+ALG}} \item \mbox{\hyperlink{a00542_a8aaaefcc3d87025e84d5ccb99b650a87}{AAX\+\_\+\+ALIGN\+\_\+\+FILE\+\_\+\+RESET}}\end{DoxyItemize}
\hypertarget{a00455_AAX_Push8ByteStructAlignment_usagenotes}{}\doxysubsection{Usage notes}\label{a00455_AAX_Push8ByteStructAlignment_usagenotes}
\begin{DoxyItemize}
\item Always follow an inclusion of this file with a matching inclusion of \mbox{\hyperlink{a00713}{AAX\+\_\+\+Pop\+Struct\+Alignment.\+h}}\end{DoxyItemize}
\begin{DoxyItemize}
\item Do not place other file {\ttfamily \#include} after this file. For example\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{comment}{//\ HeaderFile1.h}}
\DoxyCodeLine{\textcolor{preprocessor}{\ \ \ \ \#include\ AAX\_Push8ByteStructAlignment.h}}
\DoxyCodeLine{\textcolor{preprocessor}{\ \ \ \ \#include\ HeaderFile2.h\ \ }\textcolor{comment}{//\ this\ file\ now\ has\ 8-\/byte\ alignment\ also!!}}
\DoxyCodeLine{\ \ \ \ \textcolor{comment}{//\ HeaderFile1.h\ definitions...}}
\DoxyCodeLine{\textcolor{preprocessor}{\ \ \ \ \#include\ AAX\_PopStructAlignment.h}}
\DoxyCodeLine{\textcolor{comment}{//\ end\ HeaderFile1.h}}

\end{DoxyCode}
 This will cause problems if Header\+File2.\+h is included elsewhere without the 8-\/byte alignment which will manifest as hard to find run-\/time bugs. The proper usage is\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{comment}{//\ HeaderFile1.h}}
\DoxyCodeLine{\textcolor{preprocessor}{\ \ \ \ \#include\ HeaderFile2.h}}
\DoxyCodeLine{\textcolor{preprocessor}{\ \ \ \ \#include\ AAX\_Push8ByteStructAlignment.h}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{//\ HeaderFile1.h\ definitions...}}
\DoxyCodeLine{\textcolor{preprocessor}{\ \ \ \ \#include\ AAX\_PopStructAlignment.h}}
\DoxyCodeLine{\textcolor{comment}{//\ end\ HeaderFile1.h}}

\end{DoxyCode}
\end{DoxyItemize}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{a00413}{AAX\+\_\+\+Push2\+Byte\+Struct\+Alignment.\+h}} 

\mbox{\hyperlink{a00815}{AAX\+\_\+\+Push4\+Byte\+Struct\+Alignment.\+h}} 

\mbox{\hyperlink{a00713}{AAX\+\_\+\+Pop\+Struct\+Alignment.\+h}} 
\end{DoxySeeAlso}
