FastLED 3.9.15
Loading...
Searching...
No Matches
align.h
Go to the documentation of this file.
1#pragma once
2
3
4
5#if defined(FASTLED_TESTING) || defined(__EMSCRIPTEN__)
6// max_align_t and alignof
7#include <cstddef> // ok include
8#endif
9
10#ifdef __EMSCRIPTEN__
11#define FL_ALIGN_BYTES 8
12#define FL_ALIGN alignas(FL_ALIGN_BYTES)
13#define FL_ALIGN_AS(T) alignas(alignof(T))
14#else
15#define FL_ALIGN_BYTES 1
16#define FL_ALIGN
17#define FL_ALIGN_AS(T)
18#endif