LibJuno
1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1
/*
2
MIT License
3
4
Copyright (c) 2025 Robin A. Onsay
5
6
Permission is hereby granted, free of charge, to any person obtaining
7
a copy of this software and associated documentation files
8
(the "Software"), to deal in the Software without restriction,
9
including without limitation the rights to use, copy, modify, merge,
10
publish, distribute, sublicense, and/or sell copies of the Software,
11
and to permit persons to whom the Software is furnished to do so,
12
subject to the following conditions:
13
14
The above copyright notice and this permission notice shall be
15
included in all copies or substantial portions of the Software.
16
*/
17
36
#ifndef JUNO_TYPES_H
37
#define JUNO_TYPES_H
38
#include "
juno/module.h
"
39
#ifdef __cplusplus
40
extern
"C"
41
{
42
#endif
43
#include <stdbool.h>
44
#include <stddef.h>
45
#include <stdint.h>
46
50
JUNO_MODULE_RESULT
(JUNO_RESULT_BOOL_T,
bool
);
54
JUNO_MODULE_RESULT
(JUNO_RESULT_UINT32_T, uint32_t);
58
JUNO_MODULE_RESULT
(JUNO_RESULT_F64_T,
double
);
62
JUNO_MODULE_RESULT
(JUNO_RESULT_SIZE_T,
size_t
);
66
JUNO_MODULE_RESULT
(JUNO_RESULT_VOID_PTR_T,
void
*);
69
#ifdef __cplusplus
70
}
71
#endif
72
#endif
JUNO_MODULE_RESULT
#define JUNO_MODULE_RESULT(NAME_T, OK_T)
Define a result type combining a status and a success payload.
Definition
module.h:193
module.h
Module system and dependency injection primitives for LibJuno.
include
juno
types.h
Generated by
1.9.8