Add SEGMENT macro for specifying a segment in which the object will be allocated
Všechny kontroly byly úspěšné
Builds / ExectOS (amd64) (push) Successful in 30s
Builds / ExectOS (i686) (push) Successful in 29s
Všechny kontroly byly úspěšné
Builds / ExectOS (amd64) (push) Successful in 30s
Builds / ExectOS (i686) (push) Successful in 29s
Tento commit je obsažen v:
rodič
493dbd0a5a
revize
f00b1b620f
@ -40,9 +40,10 @@
|
||||
#define MAXLONG 0x7FFFFFFF
|
||||
#define MAXULONG 0xFFFFFFFF
|
||||
|
||||
/* Preprocessor macros for defining a structure alignment and packing */
|
||||
/* Preprocessor macros for defining a structure alignment, packing and segment */
|
||||
#define ALIGN(x) __attribute__((aligned(x)))
|
||||
#define PACK __attribute__((packed))
|
||||
#define SEGMENT(segment) __attribute__((section(segment)))
|
||||
|
||||
/* Macro for calculating size of an array */
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
|
||||
|
Načítá se…
x
Odkázat v novém úkolu
Zablokovat Uživatele