Files
core_zero/tjp/core/containers/Align.h
Timothy Prepscius 996151a56a flatten 20260225
2026-02-25 12:43:06 -05:00

14 lines
380 B
C
Executable File

// 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