LibJuno 0.42.0
LibJuno is a lightweight C99 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
18#ifndef JUNO_TYPES_H
19#define JUNO_TYPES_H
20#include "module.h"
21#ifdef __cplusplus
22extern "C"
23{
24#endif
25#include <stdbool.h>
26#include <stddef.h>
27#include <stdint.h>
28
29JUNO_MODULE_RESULT(JUNO_RESULT_BOOL_T, bool);
30JUNO_MODULE_RESULT(JUNO_RESULT_UINT32_T, uint32_t);
31JUNO_MODULE_RESULT(JUNO_RESULT_F64_T, double);
32JUNO_MODULE_RESULT(JUNO_RESULT_SIZE_T, size_t);
33
34#ifdef __cplusplus
35}
36#endif
37#endif
#define JUNO_MODULE_RESULT(NAME_T, OK_T)
Defines a result type combining a status and a success payload.
Definition module.h:223