private.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2024-2025 Carl Seifert
3  * Copyright (C) 2024-2025 TU Dresden
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for
7  * more details.
8  */
9 
10 #pragma once
11 
12 #include <stdint.h>
13 
14 #include "architecture.h"
15 
16 #include "net/unicoap.h"
17 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /* MARK: - Debugging */
44 #define UNICOAP_DEBUG_PREFIX "coap"
45 
46 #ifndef DOXYGEN
47 # define _UNICOAP_NEED_HAVE "(need %" PRIuSIZE ", have %" PRIuSIZE ")"
48 #endif
49 
50 #ifndef DOXYGEN
58 # define _UNICOAP_PREFIX_DEBUG(category, ...) DEBUG(UNICOAP_DEBUG_PREFIX category ": " __VA_ARGS__)
59 # define UNICOAP_DEBUG(...) _UNICOAP_PREFIX_DEBUG("", __VA_ARGS__)
60 # define OPTIONS_DEBUG(...) _UNICOAP_PREFIX_DEBUG(".options", __VA_ARGS__)
61 #endif
64 #ifdef __cplusplus
65 }
66 #endif
67 
Platform-independent access to architecture details.
Main header for unicoap