Max OS 0.3
Loading...
Searching...
No Matches
macros.h
1//
2// Created by 98max on 1/11/2025.
3//
4
5#ifndef MAXOS_COMMON_MACROS_H
6#define MAXOS_COMMON_MACROS_H
7
8namespace MaxOS{
9
10 #ifdef DOXYGEN
12 #define PACKED
13 #else
15 #define PACKED __attribute__((packed))
16 #endif
17
18 #ifdef DOXYGEN
20 #define PAGE_ALIGNED
21 #else
23 #define PAGE_ALIGNED __attribute__((aligned(4096)))
24 #endif
25
26 #define CONCATENATE(a, b) CONCATENATE_IMPL(a, b)
27 #define CONCATENATE_IMPL(a, b) a##b
28}
29
30
31
32#endif //MAXOS_COMMON_MACROS_H