Skip to content

Commit

Permalink
build fixes #verification #sonar #docs
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Dec 2, 2024
1 parent 9a3b932 commit b333779
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
10 changes: 9 additions & 1 deletion include/libcyphal/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#ifndef LIBCYPHAL_CONFIG_HPP_INCLUDED
#define LIBCYPHAL_CONFIG_HPP_INCLUDED

#ifdef LIBCYPHAL_CONFIG
#include LIBCYPHAL_CONFIG
#else

#include <cstddef>

namespace libcyphal
Expand Down Expand Up @@ -44,9 +48,11 @@ constexpr std::size_t HeartbeatProducer_UpdateCallback_FunctionSize = sizeof(voi
namespace presentation
{

/// Defines the size of a payload which is considered as a small one,
/// Defines the size serialization/deserialization payload buffer which is considered as a small one,
/// and therefore could be used with stack buffer. Any payload larger than this size will be PMR allocated.
///
/// Setting it to 0 will force all payload buffers to be PMR allocated.
///
constexpr std::size_t SmallPayloadSize = 256;

/// Defines max footprint of a callback function in use by the RPC client response promise.
Expand Down Expand Up @@ -116,4 +122,6 @@ constexpr std::size_t IUdpTransport_TransientErrorHandlerMaxSize = sizeof(void*)
} // namespace config
} // namespace libcyphal

#endif // !LIBCYPHAL_CONFIG

#endif // LIBCYPHAL_CONFIG_HPP_INCLUDED
1 change: 0 additions & 1 deletion test/unittest/presentation/test_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <libcyphal/config.hpp>
#include <libcyphal/errors.hpp>
#include <libcyphal/presentation/client.hpp>
#include <libcyphal/presentation/common_helpers.hpp>
#include <libcyphal/presentation/presentation.hpp>
#include <libcyphal/presentation/response_promise.hpp>
#include <libcyphal/transport/errors.hpp>
Expand Down
1 change: 0 additions & 1 deletion test/unittest/presentation/test_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <cetl/pf17/cetlpf.hpp>
#include <libcyphal/config.hpp>
#include <libcyphal/errors.hpp>
#include <libcyphal/presentation/common_helpers.hpp>
#include <libcyphal/presentation/presentation.hpp>
#include <libcyphal/presentation/server.hpp>
#include <libcyphal/transport/errors.hpp>
Expand Down

0 comments on commit b333779

Please sign in to comment.