mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-21 20:27:52 -05:00
Add alignment macros for asset definition that make use of parameter values
This commit is contained in:
@ -3,24 +3,7 @@
|
||||
#ifndef __IW4_ASSETS_H
|
||||
#define __IW4_ASSETS_H
|
||||
|
||||
#ifdef type_align
|
||||
#undef type_align
|
||||
#endif
|
||||
#ifdef tdef_align
|
||||
#undef tdef_align
|
||||
#endif
|
||||
#ifdef __zonecodegenerator
|
||||
#define type_align alignas
|
||||
#define tdef_align alignas
|
||||
#else
|
||||
#ifdef _MSVC_LANG
|
||||
#define type_align(x) __declspec(align(x))
|
||||
#define tdef_align(x) __declspec(align(x))
|
||||
#else
|
||||
#define type_align(x) __attribute__((__aligned__(x)))
|
||||
#define tdef_align(x) /*__attribute__((__aligned__(x)))*/
|
||||
#endif
|
||||
#endif
|
||||
#include "../../Utils/TypeAlignment.h"
|
||||
|
||||
#ifndef __zonecodegenerator
|
||||
namespace IW4
|
||||
|
Reference in New Issue
Block a user