Lazuli
Macros
sizeof_types.c File Reference

Sizeof types. More...

#include <stdarg.h>
#include <Lazuli/clock_24.h>
#include <Lazuli/common.h>
#include <Lazuli/lazuli.h>
#include <Lazuli/mutex.h>
#include <Lazuli/spinlock.h>
#include <Lazuli/sys/scheduler.h>
#include <Lazuli/sys/task.h>

Go to the source code of this file.

Macros

#define SIZEOF_TYPE(T, M)
 Declare a constant containing the size of a given type. More...
 

Detailed Description

Sizeof types.

This file is used to retrieve the size of various types in the kernel after compilation. The resulting object file (.o) of this C file is excluded from linking into the final binary image.

Definition in file sizeof_types.c.

Macro Definition Documentation

◆ SIZEOF_TYPE

#define SIZEOF_TYPE (   T,
 
)
Value:
const volatile size_t \
__sizeof_##T = sizeof(T); \
const volatile char * \
__message_##T = M

Declare a constant containing the size of a given type.

Parameters
TThe type of which to get the size.
MAn short informative message to display what this type size means.

Definition at line 33 of file sizeof_types.c.