mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
macro for aligning types
This commit is contained in:
@@ -125,6 +125,14 @@
|
|||||||
# error AlignOf not defined for this compiler.
|
# error AlignOf not defined for this compiler.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if COMPILER_MSVC
|
||||||
|
# define AlignType(x) __declspec(align(x))
|
||||||
|
#elif COMPILER_CLANG || COMPILER_GCC
|
||||||
|
# define AlignType(x) __attribute__((aligned(x)))
|
||||||
|
#else
|
||||||
|
# error AlignType not defined for this compiler.
|
||||||
|
#endif
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Member Offsets
|
//~ rjf: Member Offsets
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user