flatten 20260225
This commit is contained in:
13
tjp/core/containers/Align.h
Executable file
13
tjp/core/containers/Align.h
Executable file
@@ -0,0 +1,13 @@
|
||||
// License: Modified MIT (NON-AI)
|
||||
// See the LICENSE file in the root directory for license information.
|
||||
// Copyright 2025 Timothy Prepscius
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define ALIGN( X, __Declaration__ ) __Declaration__ __attribute__((aligned(X)))
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define ALIGN( __Declaration__ ) __pragma( align(push, 4) ) __Declaration__ __pragma( pack(pop))
|
||||
#endif
|
||||
Reference in New Issue
Block a user